SourcePro® 2023.1 |
SourcePro® API Reference Guide |
The base class for the model selection classes for linear or logistic regression. More...
#include <rw/analytics/regsel.h>
Public Member Functions | |
RWRegressionModelSelector () | |
RWRegressionModelSelector (const RWRegressionModelSelector< T, S, F > &rhs) | |
RWRegressionModelSelector (const RWRegression< T, S > ®, RWSearchMethod s) | |
virtual | ~RWRegressionModelSelector () |
const RWRegressionCalc< T, S > & | calcMethod () const |
T | evalFunctionForSelected () const |
bool | fail () const |
RWCString | failMessage () const |
RWRegressionModelSelector< T, S, F > & | operator= (const RWRegressionModelSelector< T, S, F > &rhs) |
RWSearchMethod | searchMethod () const |
const RWBitVec & | selectedParamIndices (RWSearchMethod s) |
const RWBitVec & | selectedParamIndices () const |
const RWMathVec< T > & | selectedParamValues () const |
void | setCalcMethod (const RWRegressionCalc< T, S > &c) |
void | setRegression (const RWRegression< T, S > &r) |
void | setSearchMethod (RWSearchMethod s) |
This is the base class for the model selection classes for linear or logistic regression. The template parameters are:
T
, the predictor variable typeS
, the observation variable typeF
, the Functor for evaluating the particular set of predictors under consideration
|
inline |
Default constructor. Behavior undefined.
RWRegressionModelSelector< T, S, F >::RWRegressionModelSelector | ( | const RWRegressionModelSelector< T, S, F > & | rhs | ) |
Copy constructor.
|
inline |
Construct a selector for the given regression and search method. Once the object is constructed the search is done and it may be queried for parameter indices and so on.
|
inlinevirtual |
Destructor.
|
inline |
Returns the parameter estimate calculation method currently in use by the model selector.
|
inline |
Returns the value of the evaluation function F
for the selected parameters.
|
inline |
Returns true
if the search failed.
|
inline |
Returns an error message if the search fails, that is, if fail() returns true
.
RWRegressionModelSelector<T, S, F>& RWRegressionModelSelector< T, S, F >::operator= | ( | const RWRegressionModelSelector< T, S, F > & | rhs | ) |
Assignment operator.
|
inline |
Returns the search method currently in use by the model selector.
|
inline |
Returns the parameters selected by the model's selector using the search method s.
|
inline |
Returns the indices of the parameters selected by the currently set search calculation methods.
|
inline |
Returns the currently selected parameters.
void RWRegressionModelSelector< T, S, F >::setCalcMethod | ( | const RWRegressionCalc< T, S > & | c | ) |
Sets the calculation method used to calculate parameter estimates for the models searched.
void RWRegressionModelSelector< T, S, F >::setRegression | ( | const RWRegression< T, S > & | r | ) |
Sets the full regression model from which the subset of predictors is selected.
|
inline |
Sets the search method used.
Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |