I
- type of distribution valuespublic class MappedBernoulliDistribution<I> extends MappedDistribution<I>
Modifier and Type | Field and Description |
---|---|
I |
firstItem |
I |
secondItem |
rng
Constructor and Description |
---|
MappedBernoulliDistribution(I firstItem,
double firstProbability,
I secondItem) |
MappedBernoulliDistribution(I firstItem,
double firstProbability,
I secondItem,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
double |
getFirstProbability() |
I |
next()
Create random values
|
void |
setFirstProbability(double firstProbability) |
getDefaultRNG, getRandomNumberGenerator, reset
public MappedBernoulliDistribution(I firstItem, double firstProbability, I secondItem, RandomNumberGenerator rng)
public I next()
MappedDistribution
next
in class MappedDistribution<I>
public double getFirstProbability()
public void setFirstProbability(double firstProbability)