TCurveFittingFunction raise if PolyDegree > 7
Posted: Tue Jun 13, 2006 11:53 am
Hi,
I’m using some TCurveFittingFunction in my application. It works very well except for one of my charts.
When I have a polydegree > 7, teepoly.PolyFitting raise an exception (cause « Abs(M[i,i]) < Error » in GaussianFitting). The problem is systematic with this chart.
At the call of GaussianFitting, The M and B matrix contain strange value as Xe-4933 or Xe+3367 .
I try to create a simple example of this error, but I cannot recreate the problem. I also tried to found a “reason/cause” without any result.
The chart that don’t work got a TDateTime bottom axis with value < 1 (only hour ) and normal value on Y (float between 10 and 10'000 depending the case). The DataSource is a TFastLineSeries (not like my others chart that use Candle)
Also, I didn’t understood the use of the « period » for this function. I try to change the value, but I didn’t see any differences.
Do you have any idea or suggestions? Did I do somethings wrong?
Thanks in advance,
Context:
winXP SP2,
TeeChart win 7.05
Delphi Architect 9.0
PS : For CurvFitting, the PolyDegree parameter isn’t display in the Chart Editor. But the period is.
I’m using some TCurveFittingFunction in my application. It works very well except for one of my charts.
When I have a polydegree > 7, teepoly.PolyFitting raise an exception (cause « Abs(M[i,i]) < Error » in GaussianFitting). The problem is systematic with this chart.
At the call of GaussianFitting, The M and B matrix contain strange value as Xe-4933 or Xe+3367 .
I try to create a simple example of this error, but I cannot recreate the problem. I also tried to found a “reason/cause” without any result.
The chart that don’t work got a TDateTime bottom axis with value < 1 (only hour ) and normal value on Y (float between 10 and 10'000 depending the case). The DataSource is a TFastLineSeries (not like my others chart that use Candle)
Also, I didn’t understood the use of the « period » for this function. I try to change the value, but I didn’t see any differences.
Do you have any idea or suggestions? Did I do somethings wrong?
Thanks in advance,
Context:
winXP SP2,
TeeChart win 7.05
Delphi Architect 9.0
PS : For CurvFitting, the PolyDegree parameter isn’t display in the Chart Editor. But the period is.