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,
java.util.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 |
logpdf(double x,
double dof)
Chi-Squared distribution PDF (with 0.0 for x < 0)
|
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:
D.
|
java.lang.String |
toString()
Simple toString explaining the distribution parameters.
|
cdf, cdf, chisquaredProbitApproximation, digamma, gamma, gammaQuantileNewtonRefinement, getK, getTheta, logcdf, logGamma, logpdf, logpdf, logregularizedGammaP, nextRandom, nextRandom, pdf, pdf, quantile, quantile, regularizedGammaP, regularizedGammaQ, trigamma
public ChiSquaredDistribution(double dof)
dof
- Degrees of freedom.public ChiSquaredDistribution(double dof, java.util.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.public static double logpdf(double x, double dof)
x
- query valuedof
- Degrees of freedom.@Reference(authors="D. J. Best, D. E. Roberts", title="Algorithm AS 91: The percentage points of the \u03c7\u00b2 distribution", booktitle="Journal of the Royal Statistical Society. Series C (Applied Statistics)", url="https://doi.org/10.2307/2347113", bibkey="doi:10.2307/2347113") public static double quantile(double x, double dof)
Reference:
D. J. Best, D. E. Roberts
Algorithm AS 91: The percentage points of the χ² distribution
Journal of the Royal Statistical Society. Series C (Applied Statistics)
x
- Quantiledof
- Degrees of freedompublic java.lang.String toString()
GammaDistribution
toString
in interface Distribution
toString
in class GammaDistribution
Copyright © 2019 ELKI Development Team. License information.