#include <SRIleastSquares.hpp>
Inheritance diagram for SRIleastSquares:


At any point the state X and covariance P are related to the SRI by X = inverse(R) * z , P = inverse(R) * inverse(transpose(R)), or R = upper triangular square root (Cholesky decomposition) of the inverse of P, and z = R * X.
Definition at line 73 of file SRIleastSquares.hpp.
Public Member Functions | |
| SRIleastSquares (void) throw () | |
| empty constructor | |
| SRIleastSquares (const unsigned int N) throw () | |
| constructor given the dimension N. | |
| SRIleastSquares (const Namelist &NL) throw () | |
| constructor given a Namelist; its dimension determines the SRI dimension. | |
| SRIleastSquares (const Matrix< double > &R, const Vector< double > &Z, const Namelist &NL) throw (MatrixException) | |
| explicit constructor - throw if the dimensions are inconsistent. | |
| SRIleastSquares (const SRIleastSquares &right) throw () | |
| copy constructor | |
| SRIleastSquares & | operator= (const SRIleastSquares &right) throw () |
| operator= | |
| int | dataUpdate (Vector< double > &D, Vector< double > &X, Matrix< double > &Cov, void(LSF)(Vector< double > &X, Vector< double > &f, Matrix< double > &P)) throw (MatrixException) |
| A general least squares update, NOT the SRIF (Kalman) measurement update. | |
| void | zeroAll (void) |
| remove all stored information by setting the SRI to zero (does not re-dimension). | |
| bool | isValid () |
| Return true if the solution is valid, i.e. if the problem is non-singular. | |
| void | Reset (const int N=0) throw (Exception) |
| reset the computation, i.e. | |
| Vector< double > | Solution (void) |
| Get the current solution vector. | |
| int | Iterations () |
| Get the number of iterations used in last call to leastSquaresEstimation(). | |
| double | Convergence () |
| Get the convergence value found in last call to leastSquaresEstimation(). | |
| double | ConditionNumber () |
| Get the condition number of the covariance matrix from last calls to leastSquaresEstimation() (Larger means 'closer to singular' except zero means condition number is infinite). | |
Public Attributes | |
| int | iterationsLimit |
| limit on the number of iterations | |
| double | convergenceLimit |
| limit on the RSS change in solution which produces success | |
| double | divergenceLimit |
| upper limit on the RSS change in solution which produces an abort | |
| bool | doWeight |
| if true, weight the equation using the inverse of covariance matrix on input - default is false | |
| bool | doRobust |
| if true, weight the equation using robust statistical techniques - default is false | |
| bool | doSequential |
| if true, save information for a sequential solution - default is false | |
| bool | doLinearize |
| if true, equation F(X)=D is non-linear, the algorithm will be iterated, and LSF must return partials matrix and F(X). | |
| bool | doVerbose |
| if true, output intermediate results | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const SRIleastSquares &srif) |
| output operator | |
|
|
empty constructor
Definition at line 61 of file SRIleastSquares.cpp. |
|
|
constructor given the dimension N.
Definition at line 66 of file SRIleastSquares.cpp. |
|
|
constructor given a Namelist; its dimension determines the SRI dimension.
Definition at line 77 of file SRIleastSquares.cpp. |
|
||||||||||||||||
|
explicit constructor - throw if the dimensions are inconsistent.
Definition at line 89 of file SRIleastSquares.cpp. References GPSTK_THROW. |
|
|
copy constructor
Definition at line 100 of file SRIleastSquares.hpp. |
|
|
Get the condition number of the covariance matrix from last calls to leastSquaresEstimation() (Larger means 'closer to singular' except zero means condition number is infinite).
Definition at line 178 of file SRIleastSquares.hpp. |
|
|
Get the convergence value found in last call to leastSquaresEstimation().
Definition at line 173 of file SRIleastSquares.hpp. |
|
||||||||||||||||||||
|
A general least squares update, NOT the SRIF (Kalman) measurement update. Given data and measurement covariance, compute a solution and covariance using the appropriate least squares algorithm.
Definition at line 271 of file SRIleastSquares.cpp. References gpstk::StringUtils::asString(), GPSTK_RETHROW, GPSTK_THROW, gpstk::inverse(), Cholesky::L, gpstk::Robust::MedianAbsoluteDeviation(), LabelledVector::message(), gpstk::RMS(), RobustTuningT, Vector::size(), and gpstk::SrifMU(). |
|
|
Return true if the solution is valid, i.e. if the problem is non-singular.
Definition at line 154 of file SRIleastSquares.hpp. |
|
|
Get the number of iterations used in last call to leastSquaresEstimation().
Definition at line 169 of file SRIleastSquares.hpp. |
|
|
operator=
Definition at line 113 of file SRIleastSquares.cpp. |
|
|
reset the computation, i.e. remove all stored information, and optionally change the dimension. If N is not input, the dimension is not changed.
Definition at line 542 of file SRIleastSquares.cpp. References GPSTK_RETHROW, and Vector::resize(). |
|
|
Get the current solution vector.
Definition at line 165 of file SRIleastSquares.hpp. |
|
|
remove all stored information by setting the SRI to zero (does not re-dimension).
Definition at line 530 of file SRIleastSquares.cpp. |
|
||||||||||||
|
output operator
|
|
|
limit on the RSS change in solution which produces success
Definition at line 185 of file SRIleastSquares.hpp. |
|
|
upper limit on the RSS change in solution which produces an abort
Definition at line 188 of file SRIleastSquares.hpp. |
|
|
if true, equation F(X)=D is non-linear, the algorithm will be iterated, and LSF must return partials matrix and F(X).
Definition at line 203 of file SRIleastSquares.hpp. |
|
|
if true, weight the equation using robust statistical techniques - default is false
Definition at line 196 of file SRIleastSquares.hpp. |
|
|
if true, save information for a sequential solution - default is false
Definition at line 199 of file SRIleastSquares.hpp. |
|
|
if true, output intermediate results
Definition at line 206 of file SRIleastSquares.hpp. |
|
|
if true, weight the equation using the inverse of covariance matrix on input - default is false
Definition at line 192 of file SRIleastSquares.hpp. |
|
|
limit on the number of iterations
Definition at line 182 of file SRIleastSquares.hpp. |
1.3.9.1