TCurveFittingFunction raise if PolyDegree > 7

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

TCurveFittingFunction raise if PolyDegree > 7

Post by Mariano » 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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 14, 2006 10:57 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

Post by Mariano » Thu Jun 15, 2006 12:15 pm

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...

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 16, 2006 10:57 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

Post by Mariano » Thu May 03, 2007 8:05 am


Post Reply