SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Implements the calculation of linear regression parameters using singular value decomposition. More...
#include <rw/analytics/lsqsvd.h>
Public Member Functions | |
RWLeastSqSVDCalc (double tol=0.0) | |
virtual void | calc (const RWGenMat< double > &, const RWMathVec< double > &) |
virtual RWRegressionCalc < double, double > * | clone () const |
virtual bool | fail () const |
double | getTolerance () const |
virtual RWCString | name () const |
virtual RWMathVec< double > | parameters () const |
void | setTolerance (double tol) |
Public Member Functions inherited from RWRegressionCalc< double, double > | |
RWRegressionCalc () | |
virtual void | addObsToBaseCalc (const RWAddObservations< double, double > &dataChange) |
virtual void | addPredToBaseCalc (const RWAddPredictors< double, double > &dataChange) |
virtual void | removeObsFromBaseCalc (const RWRemoveObservations< double, double > &dataChange) |
virtual void | removePredFromBaseCalc (const RWRemovePredictors< double, double > &dataChange) |
virtual void | setBaseCalc (const RWGenMat< double > &r, const RWMathVec< double > &o) |
Class RWLeastSqSVDCalc implements the calculation of linear regression parameters using singular value decomposition, as described in Section 5.5.1.3, "RWLeastSqSVDCalc" in the Business Analysis Module User's Guide.
RWLeastSqSVDCalc::RWLeastSqSVDCalc | ( | double | tol = 0.0 | ) |
Constructs an RWLeastSqSVDCalc object with the specified tolerance parameter tol. Singular values whose value is less than tol are discarded.
|
virtual |
Calculates the parameters for the regression model. Invoking this method does not affect the state of any existing base calculation.
Implements RWRegressionCalc< double, double >.
|
inlinevirtual |
Allocates and creates a clone, or exact copy, of the current instance, and returns a pointer to the copy. Caller is responsible for deleting the returned object.
Implements RWRegressionCalc< double, double >.
|
inlinevirtual |
Returns true
if the calculation failed.
Implements RWRegressionCalc< double, double >.
|
inline |
Gets the tolerance parameter for the SVD decomposition.
|
inlinevirtual |
Returns the name of the calculation method.
Implements RWRegressionCalc< double, double >.
|
virtual |
Returns the parameters from the last calculation performed. If the calculation failed, and this method is called, an exception of type RWInternalErr is thrown.
Implements RWRegressionCalc< double, double >.
|
inline |
Sets the tolerance parameter for the SVD decomposition. Singular values whose value is less than tol are discarded.
Copyright © 2014 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.
Provide feedback to Rogue Wave about its documentation.