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 Details

    • a

      public final Double a
      a in y = a.x + b
    • b

      public final Double b
      b in y = a.x + b
    • rSquared

      public final Double rSquared
      The coefficient of determination.
    • meanDistance

      public final Double meanDistance
      The mean of the squared distance of the points to the regression line.
    • medianDistance

      public final Double 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 - a
      b - b
      rSquared - r squared
      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