Gin
|
Calculates linear regression from a set of points. More...
Public Member Functions | |
LinearRegression () | |
LinearRegression (juce::Array< Point< double >> points) | |
void | addPoint (Point< double > pnt) |
void | calculate () |
void | clear () |
bool | haveData () const |
int | items () const |
double | getA () const |
double | getB () const |
double | getCoefDeterm () const |
double | getCoefCorrel () const |
double | getStdErrorEst () const |
double | estimateY (double x) const |
Protected Attributes | |
int | n = 0 |
double | sumX = 0 |
double | sumY = 0 |
double | sumXsquared = 0 |
double | sumYsquared = 0 |
double | sumXY = 0 |
double | a = 0 |
double | b = 0 |
double | coefD = 0 |
double | coefC = 0 |
double | stdError = 0 |
Calculates linear regression from a set of points.
LinearRegression::LinearRegression | ( | ) |
LinearRegression::LinearRegression | ( | juce::Array< Point< double >> | points | ) |
void LinearRegression::addPoint | ( | Point< double > | pnt | ) |
void LinearRegression::calculate | ( | ) |
void LinearRegression::clear | ( | ) |
bool LinearRegression::haveData | ( | ) | const |
References n.
int LinearRegression::items | ( | ) | const |
References n.
double LinearRegression::getA | ( | ) | const |
References a.
double LinearRegression::getB | ( | ) | const |
References b.
double LinearRegression::getCoefDeterm | ( | ) | const |
References coefD.
double LinearRegression::getCoefCorrel | ( | ) | const |
References coefC.
double LinearRegression::getStdErrorEst | ( | ) | const |
References stdError.
|
protected |
Referenced by haveData(), and items().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by estimateY(), and getA().
|
protected |
Referenced by estimateY(), and getB().
|
protected |
Referenced by getCoefDeterm().
|
protected |
Referenced by getCoefCorrel().
|
protected |
Referenced by getStdErrorEst().