47 virtual void addXY(
const double& x,
const double& y);
54 virtual double getA()
const {
return a; }
55 virtual double getB()
const {
return b; }
60 virtual double estimateY(
double x)
const {
return (
a +
b * x); }
77 #endif // end of linreg.h double sumXY
Definition: linreg.h:67
double coefD
Definition: linreg.h:70
double getCoefDeterm() const
Definition: linreg.h:57
double getStdErrorEst() const
Definition: linreg.h:59
int haveData() const
Definition: linreg.h:51
virtual void addXY(const double &x, const double &y)
Definition: linreg.cpp:20
virtual double getB() const
Definition: linreg.h:55
LinearRegression(double *x, double *y, long size=0)
Definition: linreg.cpp:9
double stdError
Definition: linreg.h:70
double sumYsquared
Definition: linreg.h:65
virtual double getA() const
Definition: linreg.h:54
double getCoefCorrel() const
Definition: linreg.h:58
long n
Definition: linreg.h:63
void Calculate()
Definition: linreg.cpp:31
double sumY
Definition: linreg.h:64
double sumXsquared
Definition: linreg.h:65
double coefC
Definition: linreg.h:70
double sumX
Definition: linreg.h:64
long items() const
Definition: linreg.h:52
double a
Definition: linreg.h:69
virtual double estimateY(double x) const
Definition: linreg.h:60
double b
Definition: linreg.h:69