public class MappedGeneralDistribution<I> extends MappedDistribution<I>
next
returns one of this items randomly chosen due to the
probabilities.rng
Constructor and Description |
---|
MappedGeneralDistribution() |
MappedGeneralDistribution(RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
void |
bind(I item,
double prob) |
void |
equalize() |
int |
getSize() |
double |
getSum() |
I |
next()
Create random values
|
void |
normalize() |
void |
rebind(I item,
double prob) |
void |
unbind(I item) |
getDefaultRNG, getRandomNumberGenerator, reset
public MappedGeneralDistribution(RandomNumberGenerator rng)
public MappedGeneralDistribution()
public I next()
MappedDistribution
next
in class MappedDistribution<I>
public void bind(I item, double prob)
public void rebind(I item, double prob)
public void unbind(I item)
public void normalize()
public void equalize()
public double getSum()
public int getSize()