General Linear Model.
More...
|
template<class T , size_t rows, size_t columns> |
| glm (const T(&design)[rows][columns]) |
|
| glm (const std::vector< std::vector< double > > &design) |
|
size_t | get_design_rank () const |
| Get the rank of the design matrix.
|
|
size_t | get_residual_df () const |
|
size_t | nrows () const |
| Get the number of rows of the design matrix.
|
|
size_t | ncols () const |
| Get the number of columns of the design matrix.
|
|
template<class Iter > |
void | fit (Iter obs) |
| Fit the model to the observations at the given input iterator. More...
|
|
template<class Iter > |
void | get_coefficients (Iter dest) const |
| Copies the coefficient vector of size ncols() to dest.
|
|
template<class Iter > |
void | get_residuals (Iter dest) |
| Compute the vector of residuals of size nrows() [r = y - X c].
|
|
template<class Twodim > |
void | get_vcov (Twodim &res) const |
| Get the variance-covariance matrix of size ncols() x ncols(). More...
|
|
template<class Iter >
void shore::glm::fit |
( |
Iter |
obs) | |
|
|
inline |
Fit the model to the observations at the given input iterator.
Input: vector of size nrows().
template<class Twodim >
void shore::glm::get_vcov |
( |
Twodim & |
res) | |
const |
|
inline |
Get the variance-covariance matrix of size ncols() x ncols().
(res must provide a [][] operator)
The documentation for this class was generated from the following file: