liba 0.1.15
An algorithm library based on C/C++
|
Topics | |
linear regression | |
simple linear regression | |
Functions | |
void | a_regress_odm_ (size_t n, double const *p, double *odm, double p_mean) |
calculate observation deviation from mean for regression | |
double | a_regress_odm (size_t n, double const *p, double *odm) |
calculate observation deviation from mean for regression | |
double a_regress_odm | ( | size_t | n, |
double const * | p, | ||
double * | odm ) |
calculate observation deviation from mean for regression
[in] | n | number of samples, p[n], odm[n] |
[in] | p | response data, specified as a numeric vector |
[in,out] | odm | deviation, specified as a numeric vector |
void a_regress_odm_ | ( | size_t | n, |
double const * | p, | ||
double * | odm, | ||
double | p_mean ) |
calculate observation deviation from mean for regression
[in] | n | number of samples, p[n], odm[n] |
[in] | p | response data, specified as a numeric vector |
[in,out] | odm | deviation, specified as a numeric vector |
[in] | p_mean | mean of response data |