public class UniformDiscreteDistribution extends DiscreteDistribution
name| Constructor and Description |
|---|
UniformDiscreteDistribution(java.lang.String name,
java.util.Set<java.lang.Double> massPoints)
Distribution to choose from a set of points with equal probability
|
| Modifier and Type | Method and Description |
|---|---|
double |
draw()
Draw a value from the distribution according to the distribution at hand
|
getName, toStringpublic UniformDiscreteDistribution(java.lang.String name,
java.util.Set<java.lang.Double> massPoints)
name - Name of the distribution (will be prefixed with UniformDiscreteDistribution_)massPoints - The set of point to choose frompublic double draw()
UnivariateDistributiondraw in class UnivariateDistribution