liba 0.1.15
An algorithm library based on C/C++
 
Loading...
Searching...
No Matches
a_regress_simple Struct Reference

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
 

Detailed Description

instance structure for simple linear regression

Field Documentation

◆ bias

a_float a_regress_simple::bias

intercept

◆ coef

a_float a_regress_simple::coef

regression coefficient


The documentation for this struct was generated from the following file: