46 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:26
LinearRegressionWithoutIntercept()
Constructor.
double sum_xy_
sum of products
Definition: LinearRegressionWithoutIntercept.h:62
double sum_xx_
total variation in x
Definition: LinearRegressionWithoutIntercept.h:57
double getSlope() const
returns the slope of the estimated regression line.
int n_
number of observations
Definition: LinearRegressionWithoutIntercept.h:67
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:22