public class ChiSquareDistribution extends Object implements ProbabilityDistribution<Double>
| Constructor and Description |
|---|
ChiSquareDistribution(double degrees)
Creates an instance.
|
ChiSquareDistribution(double degrees,
RandomEngine engine)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getCDF(Double x)
Returns the cumulative distribution function for a value
|
double |
getDegreesOfFreedom()
Gets the degrees of freedom.
|
double |
getInverseCDF(Double p)
Given a probability, return the value that returns this cdf
|
double |
getPDF(Double x)
Return the probability density function for a value
|
int |
hashCode() |
double |
nextRandom() |
public ChiSquareDistribution(double degrees)
degrees - The degrees of freedom of the distribution, not less than onepublic ChiSquareDistribution(double degrees,
RandomEngine engine)
degrees - The degrees of freedom of the distribution, not less than oneengine - A uniform random number generator, not nullpublic double getCDF(Double x)
getCDF in interface ProbabilityDistribution<Double>x - The value, not nullpublic double getPDF(Double x)
getPDF in interface ProbabilityDistribution<Double>x - The value, not nullpublic double getInverseCDF(Double p)
getInverseCDF in interface ProbabilityDistribution<Double>p - The probability, not null. $0 \geq p \geq 1$public double nextRandom()
nextRandom in interface ProbabilityDistribution<Double>public double getDegreesOfFreedom()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.