|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.math.num.pdf.ContinuousDistribution
jhplot.math.num.pdf.ChiSquared
public class ChiSquared
The Chi-Squared distribution (1).
Constructor Summary | |
---|---|
ChiSquared()
Default constructor. |
|
ChiSquared(double df)
Create a distribution with the given degrees of freedom. |
Method Summary | |
---|---|
double |
cumulativeProbability(double x)
The CDF for this distribution. |
double |
getDegreesOfFreedom()
Access the degrees of freedom. |
double |
inverseCumulativeProbability(double p)
The inverse CDF for this distribution. |
void |
setDegreesOfFreedom(double df)
Modify the degrees of freedom. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChiSquared()
public ChiSquared(double df)
df
- degrees of freedom.Method Detail |
---|
public double cumulativeProbability(double x) throws NumericException
cumulativeProbability
in class ContinuousDistribution
x
- the value at which the CDF is evaluated.
NumericException
- if the cumulative probability can not be
computed.public double getDegreesOfFreedom()
public double inverseCumulativeProbability(double p) throws NumericException
inverseCumulativeProbability
in class ContinuousDistribution
p
- the cumulative probability.
NumericException
- if the inverse cumulative probability can not be
computed.public void setDegreesOfFreedom(double df)
df
- The new degrees of freedom value.
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |