| Machine learning algorithms in C++
    | 
Ordinary and weighted Least squares algorithm. More...
#include <LeastSquares.hpp>
| Public Types | |
| enum | RegressionType { REGULAR, WEIGHTED } | 
| Public Member Functions | |
| LeastSquares (MatrixD data, MatrixD labels, RegressionType regType=REGULAR) | |
| RegressionType | getRegressionType () const | 
| void | setRegressionType (RegressionType regressionType) | 
| void | fit () | 
| MatrixD | predict (MatrixD m) | 
| const MatrixD & | getCoefs () const | 
| const MatrixD & | getResiduals () const | 
| Private Attributes | |
| MatrixD | X | 
| MatrixD | y | 
| MatrixD | coefs | 
| MatrixD | residuals | 
| RegressionType | regressionType | 
Ordinary and weighted Least squares algorithm.
Definition at line 17 of file LeastSquares.hpp.
| Enumerator | |
|---|---|
| REGULAR | |
| WEIGHTED | |
Definition at line 19 of file LeastSquares.hpp.
| 
 | inline | 
Definition at line 26 of file LeastSquares.hpp.
| 
 | inline | 
Definition at line 40 of file LeastSquares.hpp.
| 
 | inline | 
Definition at line 70 of file LeastSquares.hpp.
| 
 | inline | 
Definition at line 32 of file LeastSquares.hpp.
| 
 | inline | 
Definition at line 74 of file LeastSquares.hpp.
| 
 | inline | 
Definition at line 65 of file LeastSquares.hpp.
| 
 | inline | 
Definition at line 36 of file LeastSquares.hpp.
| 
 | private | 
Definition at line 23 of file LeastSquares.hpp.
| 
 | private | 
Definition at line 24 of file LeastSquares.hpp.
| 
 | private | 
Definition at line 23 of file LeastSquares.hpp.
| 
 | private | 
Definition at line 23 of file LeastSquares.hpp.
| 
 | private | 
Definition at line 23 of file LeastSquares.hpp.
 1.8.14
 1.8.14