68 std::vector<double>::const_iterator x_begin,
69 std::vector<double>::const_iterator x_end,
70 std::vector<double>::const_iterator y_begin);
86 std::vector<double>::const_iterator x_begin,
87 std::vector<double>::const_iterator x_end,
88 std::vector<double>::const_iterator y_begin,
89 std::vector<double>::const_iterator w_begin);
97 double eval(
double x)
const;
108 static double eval(
double A,
double B,
double C,
double x);
Estimates model parameters for a quadratic equation.
Definition QuadraticRegression.h:42
double b_
Linear coefficient of the last successful fit.
Definition QuadraticRegression.h:142
double eval(double x) const
Evaluate the fitted polynomial at x.
double getC() const
Quadratic coefficient of the fitted polynomial.
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)
Fit y = a + b*x + c*x^2 to weighted 2D points.
double getA() const
Constant term of the fitted polynomial.
double c_
Quadratic coefficient of the last successful fit.
Definition QuadraticRegression.h:143
void computeRegression(std::vector< double >::const_iterator x_begin, std::vector< double >::const_iterator x_end, std::vector< double >::const_iterator y_begin)
Fit y = a + b*x + c*x^2 to unweighted 2D points.
QuadraticRegression()
Default constructor.
static double eval(double A, double B, double C, double x)
Evaluate a quadratic polynomial at x using externally-supplied coefficients.
double getChiSquared() const
Weighted residual sum of squares of the last successful fit.
double chi_squared_
Weighted residual sum of the last successful fit.
Definition QuadraticRegression.h:144
double getB() const
Linear coefficient of the fitted polynomial.
double a_
Constant term of the last successful fit.
Definition QuadraticRegression.h:141
You can set more CMake variables adding< code > linking and adding include directories</td ></tr >< tr >< th valign="top"> CMAKE_PREFIX_PATH</td >< td > Additional search path for the contrib libraries[MacOSX only] If you want to use libraries installed via Homebrew or MacPorts you might need to provide the corresponding paths< code > e g< code > C
Definition common-cmake-parameters.doxygen:35
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19