SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
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 () |
void | setRegression (const RWRegression< T, S > &r) |
void | setSearchMethod (RWSearchMethod s) |
const RWBitVec & | selectedParamIndices (RWSearchMethod s) |
void | setCalcMethod (const RWRegressionCalc< T, S > &c) |
const RWRegressionCalc< T, S > & | calcMethod () const |
const RWBitVec & | selectedParamIndices () const |
RWSearchMethod | searchMethod () const |
bool | fail () const |
RWCString | failMessage () const |
const RWMathVec< T > & | selectedParamValues () const |
T | evalFunctionForSelected () const |
RWRegressionModelSelector< T, S, F > & | operator= (const RWRegressionModelSelector< T, S, F > &rhs) |
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 RWRegressionModelSelector< T, S, F >::RWRegressionModelSelector | ( | ) | [inline] |
Default constructor. Behavior undefined.
RWRegressionModelSelector< T, S, F >::RWRegressionModelSelector | ( | const RWRegressionModelSelector< T, S, F > & | rhs | ) |
Copy constructor.
RWRegressionModelSelector< T, S, F >::RWRegressionModelSelector | ( | const RWRegression< T, S > & | reg, | |
RWSearchMethod | s | |||
) | [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.
virtual RWRegressionModelSelector< T, S, F >::~RWRegressionModelSelector | ( | ) | [inline, virtual] |
Destructor.
const RWRegressionCalc<T,S>& RWRegressionModelSelector< T, S, F >::calcMethod | ( | ) | const [inline] |
Returns the parameter estimate calculation method currently in use by the model selector.
T RWRegressionModelSelector< T, S, F >::evalFunctionForSelected | ( | ) | const [inline] |
Returns the value of the evaluation function F
for the selected parameters.
bool RWRegressionModelSelector< T, S, F >::fail | ( | ) | const [inline] |
Returns true
if the search failed.
RWCString RWRegressionModelSelector< T, S, F >::failMessage | ( | ) | const [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.
RWSearchMethod RWRegressionModelSelector< T, S, F >::searchMethod | ( | ) | const [inline] |
Returns the search method currently in use by the model selector.
const RWBitVec& RWRegressionModelSelector< T, S, F >::selectedParamIndices | ( | ) | const [inline] |
Returns the indices of the parameters selected by the currently set search calculation methods.
const RWBitVec& RWRegressionModelSelector< T, S, F >::selectedParamIndices | ( | RWSearchMethod | s | ) | [inline] |
Returns the parameters selected by the model's selector using the search method s.
const RWMathVec<T>& RWRegressionModelSelector< T, S, F >::selectedParamValues | ( | ) | const [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.
void RWRegressionModelSelector< T, S, F >::setSearchMethod | ( | RWSearchMethod | s | ) | [inline] |
Sets the search method used.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.