public class BinomialConvolutionGen extends BinomialGen
| Constructor and Description |
|---|
BinomialConvolutionGen(RandomStream s,
BinomialDist dist)
Creates a random variate generator for the binomial
distribution dist and stream s.
|
BinomialConvolutionGen(RandomStream s,
int n,
double p)
Creates a binomial random variate generator with
parameters n and p, using stream s.
|
| Modifier and Type | Method and Description |
|---|---|
int |
nextInt()
Generates a random number (an integer) from the discrete
distribution contained in this object.
|
static int |
nextInt(RandomStream s,
int n,
double p) |
getN, getPgetDistribution, nextArrayOfIntgetStream, nextArrayOfDouble, nextDouble, setStreampublic BinomialConvolutionGen(RandomStream s, int n, double p)
public BinomialConvolutionGen(RandomStream s, BinomialDist dist)
public int nextInt()
RandomVariateGenIntnextInt in class RandomVariateGenIntpublic static int nextInt(RandomStream s, int n, double p)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.