DESERT 3.5.1
|
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 |
Enumerator | |
---|---|
OK | |
TIMEOUT | |
ERROR |
Definition at line 38 of file least_squares.h.
LSSQ::LeastSqResult LSSQ::nnLeastSquares | ( | std::vector< std::vector< double > > | a, |
std::vector< double > | b, | ||
std::vector< double > & | x, | ||
double * | resid = nullptr |
||
) |
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 |
Definition at line 115 of file least_squares.cpp.