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
double getSlope()
returns the slope of the estimated regression line.
LinearRegressionWithoutIntercept()
Constructor.
double sum_xy_
sum of products
Definition: LinearRegressionWithoutIntercept.h:88
double sum_xx_
total variation in x
Definition: LinearRegressionWithoutIntercept.h:83
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