public class ChiSquaredDistribution extends GammaDistribution
EULERS_CONST, LANCZOS, NUM_PRECISION
Constructor and Description |
---|
ChiSquaredDistribution(double dof)
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. |
cdf, cdf, chisquaredProbitApproximation, digamma, estimate, estimate, gamma, gammaQuantileNewtonRefinement, getK, getTheta, logcdf, logGamma, logpdf, logregularizedGammaP, nextRandom, nextRandom, pdf, pdf, quantile, quantile, regularizedGammaP, regularizedGammaQ, toString, trigamma
public ChiSquaredDistribution(double dof)
dof
- Degrees of freedom.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 freedom