public class BernoulliDistribution extends DiscreteDistribution
Modifier and Type | Field and Description |
---|---|
double |
mean |
rng
Constructor and Description |
---|
BernoulliDistribution(double mean) |
BernoulliDistribution(double mean,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public BernoulliDistribution(double mean, RandomNumberGenerator rng)
public BernoulliDistribution(double mean)
public int next()
DiscreteDistribution
next
in class DiscreteDistribution