
All Units All Classes Properties, Methods and Events |
CalcFitting function
function CalcFitting(PolyDegree: Integer; Const Answer: TDegreeVector; Const XWert: Float): Float;
Unit
TeePoly
Description
The CalcFitting function evaluates polynomial of the PolyDegree order with X value.
Polynomial coefficients are stored in Answer array.
The following formula is used to evaluate polynomial:
P(x) = Answer[0] + Answer[1]*x^2 + Answer[2]*x^3 + ...
This function is internally used by the Polynomial Fitting function (TCurveFittingFunction).
Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.