public class ChiSquareGen extends RandomVariateGen
GammaGen.
The (non-static) nextDouble method simply calls inverseF on the distribution.
| Constructor and Description |
|---|
ChiSquareGen(RandomStream s,
ChiSquareDist dist)
Create a new generator for the distribution dist
and stream s.
|
ChiSquareGen(RandomStream s,
int n)
Creates a chi square random variate generator with
n degrees of freedom, using 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 chi square distribution
with n degrees of freedom, using stream s.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic ChiSquareGen(RandomStream s, int n)
public ChiSquareGen(RandomStream s, ChiSquareDist 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.