72 void addData(std::vector<double>& x, std::vector<double>& y);
This class offers functions to perform least-squares fits to a straight line model,...
Definition: LinearRegressionWithoutIntercept.h:52
LinearRegressionWithoutIntercept()
Constructor.
double sum_xy_
sum of products
Definition: LinearRegressionWithoutIntercept.h:88
double sum_xx_
total variation in x
Definition: LinearRegressionWithoutIntercept.h:83
double getSlope() const
returns the slope of the estimated regression line.
int n_
number of observations
Definition: LinearRegressionWithoutIntercept.h:93
void addData(double x, double y)
adds an observation (x,y) to the regression data set.
void addData(std::vector< double > &x, std::vector< double > &y)
adds observations (x,y) to the regression data set.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47