public class StudentsTDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
StudentsTDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private int |
v
Degrees of freedom
|
random
Constructor and Description |
---|
StudentsTDistribution(int v)
Constructor.
|
StudentsTDistribution(int v,
Random random)
Constructor.
|
StudentsTDistribution(int v,
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,
int v)
Static version of the CDF of the t-distribution for t > 0
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double val)
Return the density of an existing value
|
static double |
pdf(double val,
int v)
Static version of the t distribution's PDF.
|
double |
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
String |
toString()
Describe the distribution
|
public StudentsTDistribution(int v)
v
- Degrees of freedompublic StudentsTDistribution(int v, Random random)
v
- Degrees of freedomrandom
- Random generatorpublic StudentsTDistribution(int v, RandomFactory random)
v
- Degrees of freedomrandom
- Random generatorpublic double pdf(double val)
Distribution
val
- existing valuepublic double cdf(double val)
Distribution
val
- existing valuepublic double quantile(double val)
Distribution
val
- Quantile to findpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public static double pdf(double val, int v)
val
- value to evaluatev
- degrees of freedompublic static double cdf(double val, int v)
val
- value to evaluatev
- degrees of freedompublic 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.