Parameter Calculation Classes
The parameter calculation classes calculate model parameters from input regression data. They all derive from the abstract base class
RWRegressionCalc<T,S>, which is contained in
RWRegression<T,S>. As with
RWRegression<T,S>, the first template parameter for
RWRegressionCalc<T,S> is the type for predictor data and the second template parameter is the type for observation data.
The class hierarchy for the parameter calculation classes is shown in
Figure 2.
Normally, users will
not deal with the parameter calculation classes directly. Parameter calculation classes are contained
within the regression classes
RWLinearRegression and
RWLogisticRegression, just as the parameter calculation base class is contained within the regression base class.
The parameter calculation classes for linear regression, that may be contained in class
RWLinearRegression, are
RWLeastSqQRCalc,
RWLeastSqQRPvtCalc, and
RWLeastSqSVDCalc. The parameter calculation classes for logistic regression, that may be contained in class
RWLogisticRegression, are
RWLogisticIterLSQ and
RWLogisticLevenbergMarquardt. Each regression class object invokes the appropriate methods on the parameter calculation classes when the regression data it maintains is modified.