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,
java.util.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 |
logpdf(double val)
Return the log density of an existing value
|
static double |
logpdf(double val,
int v)
Static version of the t distribution's PDF.
|
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.
|
java.lang.String |
toString()
Describe the distribution
|
public StudentsTDistribution(int v)
v
- Degrees of freedompublic StudentsTDistribution(int v, java.util.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 logpdf(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 logpdf(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 java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.