#include <linreg.h>

Public Member Functions

 LinearRegression (double *x, double *y, long size=0)
 
virtual void addXY (const double &x, const double &y)
 
int haveData () const
 
long items () const
 
virtual double getA () const
 
virtual double getB () const
 
double getCoefDeterm () const
 
double getCoefCorrel () const
 
double getStdErrorEst () const
 
virtual double estimateY (double x) const
 

Protected Member Functions

void Calculate ()
 

Protected Attributes

long n
 
double sumX
 
double sumY
 
double sumXsquared
 
double sumYsquared
 
double sumXY
 
double a
 
double b
 
double coefD
 
double coefC
 
double stdError
 

Constructor & Destructor Documentation

LinearRegression::LinearRegression ( double *  x,
double *  y,
long  size = 0 
)

Member Function Documentation

void LinearRegression::addXY ( const double &  x,
const double &  y 
)
virtual
void LinearRegression::Calculate ( )
protected
virtual double LinearRegression::estimateY ( double  x) const
inlinevirtual
virtual double LinearRegression::getA ( ) const
inlinevirtual
virtual double LinearRegression::getB ( ) const
inlinevirtual
double LinearRegression::getCoefCorrel ( ) const
inline
double LinearRegression::getCoefDeterm ( ) const
inline
double LinearRegression::getStdErrorEst ( ) const
inline
int LinearRegression::haveData ( ) const
inline
long LinearRegression::items ( ) const
inline

Member Data Documentation

double LinearRegression::a
protected
double LinearRegression::b
protected
double LinearRegression::coefC
protected
double LinearRegression::coefD
protected
long LinearRegression::n
protected
double LinearRegression::stdError
protected
double LinearRegression::sumX
protected
double LinearRegression::sumXsquared
protected
double LinearRegression::sumXY
protected
double LinearRegression::sumY
protected
double LinearRegression::sumYsquared
protected

The documentation for this class was generated from the following files:
  • /Users/alex/Workspace/develop/uarm_metal/uarm4arduino/src/linreg.h
  • /Users/alex/Workspace/develop/uarm_metal/uarm4arduino/src/linreg.cpp