|
DESERT 4.0.0
|
Enumerations | |
| enum | LeastSqResult { OK = 0 , TIMEOUT = 1 , ERROR = 2 } |
Functions | |
| LeastSqResult | nnLeastSquares (std::vector< std::vector< double > > a, std::vector< double > b, std::vector< double > &x, double *resid=nullptr) |
| enum LSSQ::LeastSqResult |
| LSSQ::LeastSqResult LSSQ::nnLeastSquares | ( | std::vector< std::vector< double > > | a, |
| std::vector< double > | b, | ||
| std::vector< double > & | x, | ||
| double * | resid = nullptr |
||
| ) |
@brief Least Squares Linear Regressor solves the least squares problem A * X
= B, X>=0
| a | NxM matrix A: the first index returns the vector of samples related to a single unknown, the second index individuates the sample |
| b | vector of known terms of size M |
| x | vector of size N to hold the solution output |
| resid | (optional) outputs the squared norm of the residual vector |
Referenced by UwRangingTokenBus::computeDist().