TCustomFittingFunction.AnswerVector

TCustomFittingFunction.AnswerVector
TCustomFittingFunction

property AnswerVector[Index: Integer]: Double;

Unit
CurvFitt

Description
Read-only and run time only.
The AnswerVector array property returns the polynomical coefficients used to calculate all CurveFitting points.
TCurveFittingFunction calculates the coefficients just before drawing all points.

This code displays the polynomy:

for t := 1 to CurveFittingSeries1.PolyDegree do
begin
WriteLn( 'Degree: ', t, CurveFittingSeries1.AnswerVector[ t ]:15:5 );
end;

The GetCurveYValue function returns the corresponding Y value for a given X value.