public class StudentsTDistribution extends Object implements Distribution
Modifier and Type | Field and Description |
---|---|
private int |
v
Degrees of freedom
|
Constructor and Description |
---|
StudentsTDistribution(int v)
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 |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public StudentsTDistribution(int v)
v
- Degrees of freedompublic double pdf(double val)
Distribution
pdf
in interface Distribution
val
- existing valuepublic double cdf(double val)
Distribution
cdf
in interface Distribution
val
- existing valuepublic double quantile(double val)
Distribution
quantile
in interface Distribution
val
- Quantile to findpublic 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 freedom