public class StudentGen extends RandomVariateGen
GammaGen.
The (non-static) nextDouble method simply calls inverseF on the distribution.
| Constructor and Description |
|---|
StudentGen(RandomStream s,
int n)
Creates a Student random variate generator with
n degrees of freedom, using stream s.
|
StudentGen(RandomStream s,
StudentDist dist)
Creates a new generator for the Student distribution dist
and stream s.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getN()
Returns the value of n for this object.
|
static double |
nextDouble(RandomStream s,
int n)
Generates a new variate from the Student distribution
with n = n degrees of freedom, using stream s.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic StudentGen(RandomStream s, int n)
public StudentGen(RandomStream s, StudentDist dist)
public static double nextDouble(RandomStream s, int n)
public int getN()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.