Documentation of 'jhplot.stat.LinRegWeighted' Java class.
LinRegWeighted
jhplot.stat

Class LinRegWeighted



  • public class LinRegWeighted
    extends java.lang.Object
    Weighted Least Squares Regression
    • Constructor Summary

      Constructors 
      Constructor and Description
      LinRegWeighted(double[] X, double[] Y, double[] W)
      Constructor for regression calculations
    • Constructor Detail

      • LinRegWeighted

        public LinRegWeighted(double[] X,
                              double[] Y,
                              double[] W)
        Constructor for regression calculations
        Parameters:
        X - is the array of x data
        Y - is the array of y data
        W - weights of data points
    • Method Detail

      • getMinX

        public double getMinX()
        Get a minimum value for X
        Returns:
        Minimum value
      • getMaxX

        public double getMaxX()
        Get a maximum value for X
        Returns:
        Max value in X
      • getMinY

        public double getMinY()
        Get minimum value for Y
        Returns:
        minimum Y value
      • getMaxY

        public double getMaxY()
        Get maximum value in Y
        Returns:
        Maximum value in Y
      • getIntercept

        public double getIntercept()
        Get Intercept
        Returns:
        Intercept
      • getInterceptError

        public double getInterceptError()
        Get the standard error on intercept
        Returns:
        standard error on intercept
      • getSlopeError

        public double getSlopeError()
        Get the standard error on slope
        Returns:
        standard error on slope
      • getSlope

        public double getSlope()
        Get slope
        Returns:
        slope
      • getDataX

        public double[] getDataX()
        Get an array with X data
        Returns:
        array with X data
      • getDataY

        public double[] getDataY()
        Get an array with Y data
        Returns:
        array with Y data
      • getXBar

        public double getXBar()
        Get average x
        Returns:
        average X
      • getYBar

        public double getYBar()
        Get average Y
        Returns:
        average Y
      • getDataLength

        public int getDataLength()
        Get the size of the input data
        Returns:
        size of data array
      • getChi2

        public double getChi2()
        Get chi2
        Returns:
      • getResult

        public F1D getResult()
        Get the fit results
        Returns:
      • doc

        public void doc()
        Show online documentation.

DMelt 3.0 © DataMelt by jWork.ORG