Gin
|
See https://www.codeproject.com/Articles/63170/Least-Squares-Regression-for-Quadratic-Curve-Fitti for original code. More...
#include <gin_leastsquaresregression.h>
Public Member Functions | |
LeastSquaresRegression ()=default | |
void | addPoint (double x, double y) |
void | addPoint (Point< double > point) |
void | addPoints (juce::Array< Point< double > > points) |
void | clear () |
bool | enoughPoints () |
juce::Array< double > | getTerms () |
double | aTerm () |
double | bTerm () |
double | cTerm () |
double | rSquare () |
See https://www.codeproject.com/Articles/63170/Least-Squares-Regression-for-Quadratic-Curve-Fitti for original code.
Derive the equation of a quadratic curve from a series of data points. That is to say, to determine a, b, and c, where y = ax2 + bx + c. Having determined a, b, and c, I would also need a value for R-squared (the coefficient of determination).
|
default |
void LeastSquaresRegression::clear | ( | ) |
bool LeastSquaresRegression::enoughPoints | ( | ) |
juce::Array< double > LeastSquaresRegression::getTerms | ( | ) |
double LeastSquaresRegression::aTerm | ( | ) |
double LeastSquaresRegression::bTerm | ( | ) |
double LeastSquaresRegression::cTerm | ( | ) |
double LeastSquaresRegression::rSquare | ( | ) |