
All Units All Classes Properties, Methods and Events |
PolyFitting procedure
procedure PolyFitting(NumPoints, PolyDegree: Integer; Const X, Y: TVector; Var Answer: TDegreeVector);
Unit
TeePoly
Description
The PolyFitting procedure uses Gaussian algorithm to fit the PolyDegree order polynomial to a giver range of points. Points are stored in X and Y arrays.
The algorithm assumes size of X and Y array is equal to NumPoints parameter.
The result - coefficients of fitted polynomial - are returned in Answer array.
The size of Answer array is adjusted automatically.
See also the TeeChart Features demo for an example of obtaining the Array coefficients.
The maximum number of points that can be passed to PolyFitting is 32600.
The maximum allowed PolyDegree (cpu dependant) is aproximately 20.
Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.