Page 1 of 1

TCurveFittingFunction raise if PolyDegree > 7

Posted: Tue Jun 13, 2006 11:53 am
by 9333771
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.

Posted: Wed Jun 14, 2006 10:57 am
by narcis
Hi Mariano,

Would be so kind as to look at the problem again as we won't be able to fix it without being able to reproduce it?

Regarding the Period in TCurveFittingFunction, Period is not appliable to that function.
PS : For CurvFitting, the PolyDegree parameter isn’t display in the Chart Editor. But the period is.
I've added it to our wish-list to be enhanced for future releases.

Posted: Thu Jun 15, 2006 12:15 pm
by 9333771
Hi,

I just upload an example on the news chanel.
I did use LoadChartFromFile to create it.
I put you two chart file. The both crash on my PC when I click on « make it crash »


Thanks in advance

Precision :
I made the test at RuntTime.
I erase the tools and the event from the .tee file.

PS : I also found some case where it’s work fine. It looks like the problem is linked with the value of the series. I don’t know...

Posted: Fri Jun 16, 2006 10:57 am
by narcis
Hi Mariano,

Thanks for the project. I could reproduce the problem here and added it (TF02011495) to our defect list to be investigated and fixed for future releases.

Posted: Thu May 03, 2007 8:05 am
by 9333771