Documentation of 'javanpst.distributions.common.continuous.ChiSquareDistribution' Java class
ChiSquareDistribution
javanpst.distributions.common.continuous

Class ChiSquareDistribution

  • All Implemented Interfaces:
    Distribution


    public final class ChiSquareDistribution
    extends java.lang.Object
    implements Distribution
    A chi-square distribution. Uses a inner gamma distribution.
    • Constructor Detail

      • ChiSquareDistribution

        public ChiSquareDistribution()
        Default builder. Creates a chi-square distribution with 1 degree of freedom
      • ChiSquareDistribution

        public ChiSquareDistribution(int degree)
        Builder. Creates a chi-square distribution with specified degrees of freedom
        Parameters:
        degree - degrees of freedom
      • ChiSquareDistribution

        public ChiSquareDistribution(ChiSquareDistribution old)
        Copy constructor Creates a copy of a given chi-square distribution
        Parameters:
        old - chi-square distribution to copy
    • Method Detail

      • getDegree

        public int getDegree()
        Gets the number of degrees of freedom of the distribution
        Returns:
        number of degrees of freedom
      • setDegree

        public void setDegree(int value)
        Sets the number of degrees of freedom of the distribution
        Parameters:
        value - number of degrees of freedom (positive)
      • computeProbability

        public double computeProbability(double value)
        Computes mass probability at a given point of the chi-square distribution.
        Specified by:
        computeProbability in interface Distribution
        Parameters:
        value - point selected
        Returns:
        mass probability at 'value'
      • computeCumulativeProbability

        public double computeCumulativeProbability(double value)
        Computes cumulative probability at a given point of the chi-square distribution.
        Specified by:
        computeCumulativeProbability in interface Distribution
        Parameters:
        value - point selected
        Returns:
        cumulative probability at 'value'
      • computeRightTailProbability

        public double computeRightTailProbability(double value)
        Computes the right tail of chi-square distribution
        Parameters:
        value - point selected
        Returns:
        The Chi Square right tail value
      • toString

        public java.lang.String toString()
        To String method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of the distribution

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.