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