SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Calculates linear regression parameters using QR decomposition with pivoting. More...
#include <rw/analytics/lsqqrpvt.h>
Public Member Functions | |
RWLeastSqQRPvtCalc () | |
RWLeastSqQRPvtCalc (double tol) | |
virtual void | calc (const RWGenMat< double > &, const RWMathVec< double > &) |
virtual RWRegressionCalc< double, double > * | clone (void) const |
virtual bool | fail (void) const |
double | getTolerance () const |
virtual RWCString | name (void) const |
virtual RWMathVec< double > | parameters (void) 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 RWLeastSqQRPvtCalc implements the calculation of linear regression parameters using QR decomposition with pivoting, as described in Section 5.5.1.2, "RWLeastSqQRPvtCalc" in the Business Analysis Module User's Guide.
RWLeastSqQRPvtCalc::RWLeastSqQRPvtCalc | ( | ) |
Constructs an RWLeastSqQRPvtCalc object with a tolerance of 0.0
. Entries along the diagonal of the R factor of the QR decomposition less than this tolerance are treated as zero. Using this can prevent insignificant entries of R from corrupting your solution.
RWLeastSqQRPvtCalc::RWLeastSqQRPvtCalc | ( | double | tol | ) |
Constructs an RWLeastSqQRPvtCalc object with the specified tolerance parameter tol. Entries along the diagonal of the R factor of the QR decomposition less than this tolerance are treated as zero. Using this can prevent insignificant entries of R from corrupting your solution.
|
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 false
.
Implements RWRegressionCalc< double, double >.
|
inline |
Gets the tolerance parameter for the QR decomposition. Entries along the diagonal of the R factor of the QR decomposition that are less than this tolerance are treated as zero. Using this can prevent insignificant entries of R from corrupting your solution.
|
inlinevirtual |
Returns the name of the calculation method.
Implements RWRegressionCalc< double, double >.
|
inlinevirtual |
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 QR decomposition. Entries along the diagonal of the R factor of the QR decomposition that are less than this tolerance are treated as zero. Using this can prevent insignificant entries of R from corrupting your solution.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |