Class RegressionStatistics
java.lang.Object
com.compomics.util.math.statistics.linear_regression.RegressionStatistics
public class RegressionStatistics extends Object
Results of a linear regression of equation y = a.x + b and Pearson
correlation r.
- Author:
- Marc Vaudel
-
Field Summary
Fields Modifier and Type Field Description Double
a
a in y = a.x + bDouble
b
b in y = a.x + bDouble
meanDistance
The mean of the squared distance of the points to the regression line.Double
medianDistance
The median of the squared distance of the points to the regression line.Double
rSquared
The coefficient of determination. -
Constructor Summary
Constructors Constructor Description RegressionStatistics()
Empty default constructorRegressionStatistics(Double a, Double b, Double rSquared, Double meanDistance, Double medianDistance)
Constructor. -
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
-