|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.distribution.AbstractContinuousDistribution
org.apache.commons.math.distribution.ChiSquaredDistributionImpl
The default implementation of ChiSquaredDistribution
Constructor Summary | |
ChiSquaredDistributionImpl(double degreesOfFreedom)
Create a Chi-Squared distribution with the given degrees of freedom. |
Method Summary | |
double |
cummulativeProbability(double x)
For this disbution, X, this method returns P(X < x). |
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. |
void |
setDegreesOfFreedom(double degreesOfFreedom)
Modify the degrees of freedom. |
Methods inherited from class org.apache.commons.math.distribution.AbstractContinuousDistribution |
cummulativeProbability, inverseCummulativeProbability |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.math.distribution.ContinuousDistribution |
cummulativeProbability, inverseCummulativeProbability |
Constructor Detail |
public ChiSquaredDistributionImpl(double degreesOfFreedom)
degreesOfFreedom
- degrees of freedom.Method Detail |
public void setDegreesOfFreedom(double degreesOfFreedom)
setDegreesOfFreedom
in interface ChiSquaredDistribution
degreesOfFreedom
- the new degrees of freedom.public double getDegreesOfFreedom()
getDegreesOfFreedom
in interface ChiSquaredDistribution
public double cummulativeProbability(double x) throws MathException
cummulativeProbability
in interface ContinuousDistribution
x
- the value at which the CDF is evaluated.
MathException
protected double getDomainLowerBound(double p)
p
, used to
bracket a CDF root. This method is used by
AbstractContinuousDistribution.inverseCummulativeProbability(double)
to find critical values.
getDomainLowerBound
in class AbstractContinuousDistribution
p
- the desired probability for the critical value
p
protected double getDomainUpperBound(double p)
p
, used to
bracket a CDF root. This method is used by
AbstractContinuousDistribution.inverseCummulativeProbability(double)
to find critical values.
getDomainUpperBound
in class AbstractContinuousDistribution
p
- the desired probability for the critical value
p
protected double getInitialDomain(double p)
p
, used to
bracket a CDF root. This method is used by
AbstractContinuousDistribution.inverseCummulativeProbability(double)
to find critical values.
getInitialDomain
in class AbstractContinuousDistribution
p
- the desired probability for the critical value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |