#include <OpenMS/MATH/STATISTICS/QuadraticRegression.h>
|
| QuadraticRegression () |
|
void | computeRegression (std::vector< double >::const_iterator x_begin, std::vector< double >::const_iterator x_end, std::vector< double >::const_iterator y_begin) |
|
void | computeRegressionWeighted (std::vector< double >::const_iterator x_begin, std::vector< double >::const_iterator x_end, std::vector< double >::const_iterator y_begin, std::vector< double >::const_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 double | eval (double A, double B, double C, double x) |
|
◆ QuadraticRegression()
◆ computeRegression()
void computeRegression |
( |
std::vector< double >::const_iterator |
x_begin, |
|
|
std::vector< double >::const_iterator |
x_end, |
|
|
std::vector< double >::const_iterator |
y_begin |
|
) |
| |
compute the quadratic regression over 2D points
◆ computeRegressionWeighted()
void computeRegressionWeighted |
( |
std::vector< double >::const_iterator |
x_begin, |
|
|
std::vector< double >::const_iterator |
x_end, |
|
|
std::vector< double >::const_iterator |
y_begin, |
|
|
std::vector< double >::const_iterator |
w_begin |
|
) |
| |
compute the weighted quadratic regression over 2D points
◆ eval() [1/2]
static double eval |
( |
double |
A, |
|
|
double |
B, |
|
|
double |
C, |
|
|
double |
x |
|
) |
| |
|
static |
evaluate using external coefficients
◆ eval() [2/2]
double eval |
( |
double |
x | ) |
const |
evaluate the quadratic function
◆ getA()
◆ getB()
◆ getC()
◆ getChiSquared()
double getChiSquared |
( |
| ) |
const |
◆ a_
◆ b_
◆ c_
◆ chi_squared_