Class RegressionStatistics
java.lang.Object
com.compomics.util.math.statistics.linear_regression.RegressionStatistics
Results of a linear regression of equation y = a.x + b and Pearson
correlation r.
- Author:
- Marc Vaudel
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Doublea in y = a.x + bfinal Doubleb in y = a.x + bfinal DoubleThe mean of the squared distance of the points to the regression line.final DoubleThe median of the squared distance of the points to the regression line.final DoubleThe coefficient of determination. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
a
a in y = a.x + b -
b
b in y = a.x + b -
rSquared
The coefficient of determination. -
meanDistance
The mean of the squared distance of the points to the regression line. -
medianDistance
The median of the squared distance of the points to the regression line.
-
-
Constructor Details
-
RegressionStatistics
public RegressionStatistics()Empty default constructor -
RegressionStatistics
public RegressionStatistics(Double a, Double b, Double rSquared, Double meanDistance, Double medianDistance) Constructor.- Parameters:
a- ab- brSquared- r squaredmeanDistance- the mean of the squared distance of the points to the regression linemedianDistance- the median of the squared distance of the points to the regression line
-