#include <OpenMS/MATH/STATISTICS/QuadraticRegression.h>
Public Member Functions | |
QuadraticRegression () | |
template<typename Iterator > | |
void | computeRegression (Iterator x_begin, Iterator x_end, Iterator y_begin) |
template<typename Iterator > | |
void | computeRegressionWeighted (Iterator x_begin, Iterator x_end, Iterator y_begin, Iterator w_begin) |
double | eval (double x) const |
double | getA () const |
double | getB () const |
A = the intercept. More... | |
double | getC () const |
B*X. More... | |
double | getChiSquared () const |
C*X^2. More... | |
Static Public Member Functions | |
static double | eval (double A, double B, double C, double x) |
Protected Attributes | |
double | a_ |
double | b_ |
double | c_ |
double | chi_squared_ |
void computeRegression | ( | Iterator | x_begin, |
Iterator | x_end, | ||
Iterator | y_begin | ||
) |
compute the quadratic regression over 2D points
void computeRegressionWeighted | ( | Iterator | x_begin, |
Iterator | x_end, | ||
Iterator | y_begin, | ||
Iterator | w_begin | ||
) |
compute the weighted quadratic regression over 2D points
References OpenMS::Math::iteratorRange2Wm5Vectors().
evaluate using external coefficients
double getA | ( | ) | const |
double getB | ( | ) | const |
A = the intercept.
double getC | ( | ) | const |
B*X.
double getChiSquared | ( | ) | const |
C*X^2.
|
protected |
|
protected |
|
protected |
|
protected |
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:15 using doxygen 1.8.13 |