jhplot.math.num.pdf
Class ChiSquared
- java.lang.Object
- 
- jhplot.math.num.pdf.ContinuousDistribution
- 
- jhplot.math.num.pdf.ChiSquared
 
 
- 
- All Implemented Interfaces:
- Distribution
 
 
 public class ChiSquared extends ContinuousDistribution The Chi-Squared distribution (1). - Eric W. Weisstein. "Chi-Squared Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Chi-SquaredDistribution.html
 
- 
- 
Constructor SummaryConstructors Constructor and Description ChiSquared()Default constructor.ChiSquared(double df)Create a distribution with the given degrees of freedom.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecumulativeProbability(double x)The CDF for this distribution.doublegetDegreesOfFreedom()Access the degrees of freedom.doubleinverseCumulativeProbability(double p)The inverse CDF for this distribution.voidsetDegreesOfFreedom(double df)Modify the degrees of freedom.
 
- 
- 
- 
Constructor Detail- 
ChiSquaredpublic ChiSquared() Default constructor. Degrees of freedom is set to 1.
 - 
ChiSquaredpublic ChiSquared(double df) Create a distribution with the given degrees of freedom.- Parameters:
- df- degrees of freedom.
 
 
- 
 - 
Method Detail- 
cumulativeProbabilitypublic double cumulativeProbability(double x) throws NumericExceptionThe CDF for this distribution. This method returns P(X < x).- Specified by:
- cumulativeProbabilityin class- ContinuousDistribution
- Parameters:
- x- the value at which the CDF is evaluated.
- Returns:
- CDF for this distribution.
- Throws:
- NumericException- if the cumulative probability can not be computed.
 
 - 
getDegreesOfFreedompublic double getDegreesOfFreedom() Access the degrees of freedom.- Returns:
- the degrees of freedom.
 
 - 
inverseCumulativeProbabilitypublic double inverseCumulativeProbability(double p) throws NumericExceptionThe inverse CDF for this distribution. This method returns x such that, P(X < x) = p.- Specified by:
- inverseCumulativeProbabilityin class- ContinuousDistribution
- Parameters:
- p- the cumulative probability.
- Returns:
- x
- Throws:
- NumericException- if the inverse cumulative probability can not be computed.
 
 - 
setDegreesOfFreedompublic void setDegreesOfFreedom(double df) Modify the degrees of freedom.- Parameters:
- df- The new degrees of freedom value.
 
 
- 
 
- 
DMelt 3.0 © DataMelt by jWork.ORG