| 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 MathPack Math2 Class TCurveFit Methods CalcPolyFit |
|||||||||||||||
| See also: CalcParabolFit, MaxPolyFitOrder, CubicSpline, SmoothedSpline, CalcPowerFit, CalcExponentialFit | |||||||||||||||
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. Higher orders will result in numerical instabilities. The variable array parameter kArray returns the polynomial coefficients, the variable parameter FitQual returns the goodness of fit. The function CalcPolyFit returns a TRUE value if the fit has been calculated successfully, and the returned parameters are valid.
|
|||||||||||||||