public final class StudentsT extends Object implements Distribution
| Constructor and Description |
|---|
StudentsT(int df)
Create a new Student's t distribution with the given degrees of freedom.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
double |
quantile(double prob)
Compute the value of the quantile function at the given probability.
|
double |
rand()
Generate a random value from the distribution.
|
public StudentsT(int df)
df - the degrees of freedom for this distribution.public double rand()
Distributionrand in interface Distributionpublic double quantile(double prob)
Distributionquantile in interface Distributionprob - the probability that the random variable X ≤ q, where q is the quantile value.