Hello,
Can you give some details on what method is used to fit a series of data to a straight trend line in the TTrendFunction (TTrendStyle = tsNormal)?
We are using this in our product and have customers who wants to know the method used to generate the trend line.
Thanks,
Kjetil
Method used to create "best fit" trend line
Re: Method used to create "best fit" trend line
Hi Kjetil,
You are a source code customer, aren't you?
Check the following functions in CurvFitt.pas to see how it is exactly calculated:
TCustomTrendFunction.CalculateAllPoints
TCustomTrendFunction.CalculatePeriod
TCustomTrendFunction.CalculateTrend
TCustomTrendFunction.CalculateValues
You are a source code customer, aren't you?
Check the following functions in CurvFitt.pas to see how it is exactly calculated:
TCustomTrendFunction.CalculateAllPoints
TCustomTrendFunction.CalculatePeriod
TCustomTrendFunction.CalculateTrend
TCustomTrendFunction.CalculateValues
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Method used to create "best fit" trend line
Thanks,
I see as expected that the "least square fit" method is used. Just had to get it confirmed. Source code helps
- Kjetil
I see as expected that the "least square fit" method is used. Just had to get it confirmed. Source code helps
- Kjetil