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 CalcRegModel  
See also: Predict, TRegModel, CPXShift, ModelPar, PolyOrder, Residual, FitQual  
CalcRegModel 

The procedure CalcRegModel calculates a regression model of a particular type which is specified by the parameter RegModel. The parameter PolyOrder is only used for polynomial models (RegModel = rmPolynomial or RegModel = rmCenteredPoly) and is ignored in all other cases. Actually the CalcRegModel method serves as a convenient "binder" of most of the regression methods available in TCurveFit. The only difference to the individual methods listed in the following table is that the found regression parameters are not returned directly but have to be retrieved via special properties such as FitQual, ModelPar and CPXShift.
The data points have to be entered by using the procedure EnterStatValue. Do not forget to reset the statistics calculation before entering any new data sets (use Init)
