The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home ![]() ![]() ![]() ![]() ![]() |
|||||||||||||
See also: CalcParabolFit, MaxPolyFitOrder, CubicSpline, CalcCenteredPolyFit, Polynomial | |||||||||||||
CalcPolyFit |
|||||||||||||
The method CalcPolyFit calculates the best fit for a polynomial of order nOrder. The order of the polynomial is restricted to values between 1 and MaxPolyFitOrder. The variable array parameter kArray returns the polynomial coefficients, the variable parameter FitQual returns the goodness of fit. Version [2] of CalcPolyFit additionally calculates the p-values of the coefficients and returns them in the variable array alpha. The function CalcPolyFit returns a TRUE value if the fit has been calculated successfully, and the returned parameters are valid. Numerical instabilities which may arise from near-singular equations are indicated by returning a TRUE value in the variable parameter NearSingular. In this case the calculated polynomial coefficients should not be used.
|