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

instance structure for linear regression More...

#include <regress_linear.h>

Public Member Functions

void init (double *p, size_t n, double b=0)
 
double eval (double const *val) const
 
void err1 (size_t n, double const *x, double const *y, double *err) const
 
void err2 (size_t n, double const *const *x, double const *y, double *err) const
 
void pdm1 (size_t n, double const *x, double *pdm, double y_mean) const
 
void pdm2 (size_t n, double const *const *x, double *pdm, double y_mean) const
 
void gd (double const *input, double error, double alpha)
 
void sgd (double const *x, double y, double alpha)
 
void sgd1 (size_t n, double const *x, double const *y, double alpha)
 
void sgd2 (size_t n, double const *const *x, double const *y, double alpha)
 
void bgd1 (size_t n, double const *x, double const *err, double alpha)
 
void bgd2 (size_t n, double const *const *x, double const *err, double alpha)
 
double mgd1 (size_t n, double const *x, double const *y, double *err, double delta, double lrmax, double lrmin, size_t lrtim, size_t epoch, size_t batch)
 
double mgd2 (size_t n, double const *const *x, double const *y, double *err, double delta, double lrmax, double lrmin, size_t lrtim, size_t epoch, size_t batch)
 
void zero ()
 

Data Fields

double * coef_p
 
size_t coef_n
 
double bias
 

Detailed Description

instance structure for linear regression


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