Class RegressionCalculator


  • public class RegressionCalculator
    extends Object
    RegressCalculator performs calculations for regressions
    Version:
    Mon Jul 15 07:34:20 PDT 2002
    Author:
    Charles S. Stanton
    • Constructor Detail

      • RegressionCalculator

        public RegressionCalculator​(double[] aX,
                                    double[] aY)
        constructor for regression calculator
        Parameters:
        aX - is the array of x data
        aY - is the array of y data
    • Method Detail

      • reset

        public void reset()
        reset data to 0
      • getIntercept

        public double getIntercept()
      • getSlope

        public double getSlope()
      • getResiduals

        public double[][] getResiduals()
      • getDataX

        public double[] getDataX()
      • getDataY

        public double[] getDataY()
      • addPoint

        public void addPoint​(double xValue,
                             double yValue)
      • getMinX

        public double getMinX()
      • getMaxX

        public double getMaxX()
      • getMinY

        public double getMinY()
      • getMaxY

        public double getMaxY()
      • getMaxAbsoluteResidual

        public double getMaxAbsoluteResidual()
      • getSxx

        public double getSxx()
      • getSyy

        public double getSyy()
      • getSSR

        public double getSSR()
      • getSSE

        public double getSSE()
      • getMSE

        public double getMSE()
      • getXBar

        public double getXBar()
      • getYBar

        public double getYBar()
      • getDataLength

        public int getDataLength()
      • getPearsonR

        public double getPearsonR()
      • getSumXSquared

        public double getSumXSquared()