TCustomTrendFunction.CalculateTrend
 
 
 

All Units  All Classes  Properties, Methods and Events  

TCustomTrendFunction.CalculateTrend
TCustomTrendFunction

function CalculateTrend(Var m, b: Double; Source: TChartSeries; FirstIndex, LastIndex: Integer): Boolean;

Unit
CurvFitt

Description
The CalculateTrend method uses [FistIndex,..,LastIndex] Source series points to calculate trend line parameters m and b.
Trend line is defined by the following equation:

y = m*x + b





Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.