| java.lang.Object org.apache.commons.math.distribution.AbstractDistribution org.apache.commons.math.distribution.AbstractContinuousDistribution org.apache.commons.math.distribution.ChiSquaredDistributionImpl
Constructor Summary | |
public | ChiSquaredDistributionImpl(double degreesOfFreedom) Create a Chi-Squared distribution with the given degrees of freedom. |
Method Summary | |
public double | cumulativeProbability(double x) For this disbution, X, this method returns P(X < x).
Parameters: x - the value at which the CDF is evaluated. | public double | getDegreesOfFreedom() Access the degrees of freedom. | protected double | getDomainLowerBound(double p) Access the domain value lower bound, based on p , used to
bracket a CDF root. | protected double | getDomainUpperBound(double p) Access the domain value upper bound, based on p , used to
bracket a CDF root. | protected double | getInitialDomain(double p) Access the initial domain value, based on p , used to
bracket a CDF root. | public double | inverseCumulativeProbability(double p) For this distribution, X, this method returns the critical point x, such
that P(X < x) = p . | public void | setDegreesOfFreedom(double degreesOfFreedom) Modify the degrees of freedom. |
ChiSquaredDistributionImpl | public ChiSquaredDistributionImpl(double degreesOfFreedom)(Code) | | Create a Chi-Squared distribution with the given degrees of freedom.
Parameters: degreesOfFreedom - degrees of freedom. |
cumulativeProbability | public double cumulativeProbability(double x) throws MathException(Code) | | For this disbution, X, this method returns P(X < x).
Parameters: x - the value at which the CDF is evaluated. CDF for this distribution. throws: MathException - if the cumulative probability can not becomputed due to convergence or other numerical errors. |
getDegreesOfFreedom | public double getDegreesOfFreedom()(Code) | | Access the degrees of freedom.
the degrees of freedom. |
getDomainLowerBound | protected double getDomainLowerBound(double p)(Code) | | Access the domain value lower bound, based on p , used to
bracket a CDF root. This method is used by
ChiSquaredDistributionImpl.inverseCumulativeProbability(double) to find critical values.
Parameters: p - the desired probability for the critical value domain value lower bound, i.e.P(X < lower bound) < p |
getDomainUpperBound | protected double getDomainUpperBound(double p)(Code) | | Access the domain value upper bound, based on p , used to
bracket a CDF root. This method is used by
ChiSquaredDistributionImpl.inverseCumulativeProbability(double) to find critical values.
Parameters: p - the desired probability for the critical value domain value upper bound, i.e.P(X < upper bound) > p |
inverseCumulativeProbability | public double inverseCumulativeProbability(double p) throws MathException(Code) | | For this distribution, X, this method returns the critical point x, such
that P(X < x) = p .
Returns 0 for p=0 and Double.POSITIVE_INFINITY for p=1.
Parameters: p - the desired probability x, such that P(X < x) = p throws: MathException - if the inverse cumulative probability can not becomputed due to convergence or other numerical errors. throws: IllegalArgumentException - if p is not a validprobability. |
setDegreesOfFreedom | public void setDegreesOfFreedom(double degreesOfFreedom)(Code) | | Modify the degrees of freedom.
Parameters: degreesOfFreedom - the new degrees of freedom. |
Methods inherited from org.apache.commons.math.distribution.AbstractContinuousDistribution | abstract protected double getDomainLowerBound(double p)(Code)(Java Doc) abstract protected double getDomainUpperBound(double p)(Code)(Java Doc) abstract protected double getInitialDomain(double p)(Code)(Java Doc) public double inverseCumulativeProbability(double p) throws MathException(Code)(Java Doc)
|
Methods inherited from org.apache.commons.math.distribution.AbstractDistribution | public double cumulativeProbability(double x0, double x1) throws MathException(Code)(Java Doc)
|
|
|