public class HypergeometricGen extends RandomVariateGenInt
The generation method is inversion using the chop-down algorithm
| Constructor and Description |
|---|
HypergeometricGen(RandomStream s,
HypergeometricDist dist)
Creates a new generator for distribution dist,
using stream s.
|
HypergeometricGen(RandomStream s,
int m,
int l,
int k)
Creates a hypergeometric generator with
parameters m = m, l = l and k = k,
using stream s.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getK()
Returns the k associated with this object.
|
int |
getL()
Returns the l associated with this object.
|
int |
getM()
Returns the m associated with this object.
|
static int |
nextInt(RandomStream s,
int m,
int l,
int k)
Generates a new variate from the hypergeometric distribution with
parameters m = m, l = l and k = k,
using stream s.
|
getDistribution, nextArrayOfInt, nextIntgetStream, nextArrayOfDouble, nextDouble, setStreampublic HypergeometricGen(RandomStream s, int m, int l, int k)
public HypergeometricGen(RandomStream s, HypergeometricDist dist)
public static int nextInt(RandomStream s, int m, int l, int k)
public int getM()
public int getL()
public int getK()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.