instance structure for simple linear regression More...
#include <regress_simple.h>
Public Member Functions | |
void | init (a_float a=1, a_float b=0) |
a_float | eval (a_float val) const |
a_float | evar (a_float val) const |
void | ols (a_size n, a_float const *x, a_float const *y, a_float x_mean, a_float y_mean) |
void | olsx (a_size n, a_float const *x, a_float const *y, a_float x_mean) |
void | olsy (a_size n, a_float const *x, a_float const *y, a_float y_mean) |
void | ols (a_size n, a_float const *x, a_float const *y) |
void | zero () |
Data Fields | |
a_float | coef |
a_float | bias |
instance structure for simple linear regression
a_float a_regress_simple::bias |
intercept
a_float a_regress_simple::coef |
regression coefficient