public class RoundedDistribution extends DiscreteDistribution
Math.rint
.Modifier and Type | Field and Description |
---|---|
ContinuousDistribution |
baseDist |
rng
Constructor and Description |
---|
RoundedDistribution(ContinuousDistribution baseDist) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Returns the rounded value of the base distribution or
Integer.MIN/MAX_VALUE if the value exceeds the integer range. |
getDefaultRNG, getRandomNumberGenerator, reset
public final ContinuousDistribution baseDist
public RoundedDistribution(ContinuousDistribution baseDist)
public int next()
Integer.MIN/MAX_VALUE
if the value exceeds the integer range.next
in class DiscreteDistribution