public class ChiSquaredDistribution extends GammaDistribution
Modifier and Type | Class and Description |
---|---|
static class |
ChiSquaredDistribution.Parameterizer
Parameterization class
|
EULERS_CONST, LANCZOS, MAX_ITERATIONS, NUM_PRECISION
random
Constructor and Description |
---|
ChiSquaredDistribution(double dof)
Constructor.
|
ChiSquaredDistribution(double dof,
Random random)
Constructor.
|
ChiSquaredDistribution(double dof,
RandomFactory random)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static double |
cdf(double val,
double dof)
The CDF, static version.
|
static double |
pdf(double x,
double dof)
Chi-Squared distribution PDF (with 0.0 for x < 0)
|
static double |
quantile(double x,
double dof)
Return the quantile function for this distribution
Reference:
Algorithm AS 91: The percentage points of the $\chi$^2 distribution
D.J. |
String |
toString()
Simple toString explaining the distribution parameters.
|
cdf, cdf, chisquaredProbitApproximation, digamma, gamma, gammaQuantileNewtonRefinement, getK, getTheta, logcdf, logGamma, logpdf, logregularizedGammaP, nextRandom, nextRandom, pdf, pdf, quantile, quantile, regularizedGammaP, regularizedGammaQ, trigamma
public ChiSquaredDistribution(double dof)
dof
- Degrees of freedom.public ChiSquaredDistribution(double dof, Random random)
dof
- Degrees of freedom.random
- Random generator.public ChiSquaredDistribution(double dof, RandomFactory random)
dof
- Degrees of freedom.random
- Random generator.public static double cdf(double val, double dof)
val
- Valuedof
- Degrees of freedom.public static double pdf(double x, double dof)
x
- query valuedof
- Degrees of freedom.@Reference(title="Algorithm AS 91: The percentage points of the $\\chi^2$ distribution", authors="D.J. Best, D. E. Roberts", booktitle="Journal of the Royal Statistical Society. Series C (Applied Statistics)") public static double quantile(double x, double dof)
Algorithm AS 91: The percentage points of the $\chi$^2 distribution
D.J. Best, D. E. Roberts
Journal of the Royal Statistical Society. Series C (Applied Statistics)
x
- Quantiledof
- Degrees of freedompublic String toString()
GammaDistribution
toString
in interface Distribution
toString
in class GammaDistribution