linear regression.
More...
#include <yat/regression/Linear.h>
linear regression.
Data are modeled as .
double theplu::yat::regression::Linear::alpha |
( |
void |
| ) |
const |
double theplu::yat::regression::Linear::alpha_var |
( |
void |
| ) |
const |
double theplu::yat::regression::Linear::beta |
( |
void |
| ) |
const |
double theplu::yat::regression::Linear::beta_var |
( |
void |
| ) |
const |
double theplu::yat::regression::OneDimensional::chisq |
( |
void |
| ) |
const |
|
inherited |
Chi-squared.
Chi-squared is defined as the
double theplu::yat::regression::Linear::predict |
( |
const double |
x | ) |
const |
|
virtual |
double theplu::yat::regression::OneDimensional::prediction_error2 |
( |
const double |
x | ) |
const |
|
inherited |
std::ostream& theplu::yat::regression::OneDimensional::print |
( |
std::ostream & |
os, |
|
|
const double |
min, |
|
|
double |
max, |
|
|
const unsigned int |
n |
|
) |
| const |
|
inherited |
print output to ostream os
Printing estimated model to os in the points defined by min, max, and n. The values printed for each point is the x-value, the estimated y-value, and the estimated standard deviation of a new data poiunt will have from the y-value given the x-value (see prediction_error()).
- Parameters
-
os | Ostream printout is sent to |
n | number of points printed |
min | smallest x-value for which the model is printed |
max | largest x-value for which the model is printed |
double theplu::yat::regression::OneDimensional::r2 |
( |
void |
| ) |
const |
|
inherited |
r2 is defined as or the fraction of the variance explained by the regression model.
- See Also
- s2()
double theplu::yat::regression::Linear::s2 |
( |
void |
| ) |
const |
|
virtual |
double theplu::yat::regression::Linear::standard_error2 |
( |
const double |
x | ) |
const |
|
virtual |
double theplu::yat::regression::OneDimensional::variance |
( |
void |
| ) |
const |
|
protectedinherited |
Averager for pair of x and y
double theplu::yat::regression::OneDimensional::chisq_ |
|
protectedinherited |
The documentation for this class was generated from the following file: