public class ChiDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
ChiDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private ChiSquaredDistribution |
chisq
Chi squared distribution (for random generation)
|
private double |
dof
Degrees of freedom.
|
random
Constructor and Description |
---|
ChiDistribution(double dof)
Constructor.
|
ChiDistribution(double dof,
Random random)
Constructor.
|
ChiDistribution(double dof,
RandomFactory random)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
cdf(double val)
Return the cumulative density function at the given value.
|
static double |
cdf(double val,
double dof)
Cumulative density function.
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double val)
Return the density of an existing value
|
static double |
pdf(double val,
double dof)
PDF function
|
double |
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
String |
toString()
Describe the distribution
|
private double dof
private ChiSquaredDistribution chisq
public ChiDistribution(double dof)
dof
- Degrees of freedom. Usually integer.public ChiDistribution(double dof, Random random)
dof
- Degrees of freedom. Usually integer.random
- Random number generator.public ChiDistribution(double dof, RandomFactory random)
dof
- Degrees of freedom. Usually integer.random
- Random number generator.public double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public double pdf(double val)
Distribution
val
- existing valuepublic static double pdf(double val, double dof)
val
- Valuedof
- Degrees of freedompublic double cdf(double val)
Distribution
val
- existing valuepublic static double cdf(double val, double dof)
val
- Valuedof
- Degrees of freedom.public double quantile(double val)
Distribution
val
- Quantile to findpublic String toString()
Distribution
toString
in interface Distribution
toString
in class Object
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.