Hi
I have a set of data that is plotted in the graph SOURCE as a Line graph. In the same chart I can easily choose to make a curve fitted plot as well. But how can I calculate/get an Y-value from an arbitrary X-value. I could not find any examples that worked in C++. Maybe more explanation on the curve fitting function and how it works would also be appreciated.
Best regards
Carsten Hinrichsen
Curvefitting (howto)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Carsten,
To obtain values from any point in a series you can do something as in the interpolating example I posted in this other thread.
CurveFitting function help info:
TCurveFittingFunction constructs a polynomial line based on its DataSource Series values.
The algorithm used to fit the points is a Gaussian Polynomial.
Use the PolyDegree property to determine the number of polynomial coefficients.
To see a visual representation of TeeChart Extended Functions, go to the TeeChart User Guide.
To obtain values from any point in a series you can do something as in the interpolating example I posted in this other thread.
CurveFitting function help info:
TCurveFittingFunction constructs a polynomial line based on its DataSource Series values.
The algorithm used to fit the points is a Gaussian Polynomial.
Use the PolyDegree property to determine the number of polynomial coefficients.
To see a visual representation of TeeChart Extended Functions, go to the TeeChart User Guide.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Carsten,
Have you tried porting the interpolating example to C++? If so, which are the problems you found?
Have you tried porting the interpolating example to C++? If so, which are the problems you found?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |