public class StudentPolarGen extends StudentGen
The non-static nextDouble method generates two variates at a time and the second one is saved for the next call. A pair of variates is generated every second call. In the static case, two variates are generated per call but only the first one is returned and the second is discarded.
| Constructor and Description |
|---|
StudentPolarGen(RandomStream s,
int n)
Creates a Student random variate generator with n
degrees of freedom, using stream s.
|
StudentPolarGen(RandomStream s,
StudentDist dist)
Creates a new generator for the Student distribution dist
and stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Generates a random number from the continuous distribution
contained in this object.
|
static double |
nextDouble(RandomStream s,
int n) |
getNgetDistribution, getStream, nextArrayOfDouble, setStreampublic StudentPolarGen(RandomStream s, int n)
public StudentPolarGen(RandomStream s, StudentDist dist)
public double nextDouble()
RandomVariateGeninverseF
method of the distribution object.
Alternative generating methods are provided in subclasses.nextDouble in class RandomVariateGenpublic static double nextDouble(RandomStream s, int n)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.