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