public class DiscreteBoundedDistribution extends DiscreteDistribution
Modifier and Type | Field and Description |
---|---|
DiscreteDistribution |
baseDist |
int |
lowerBound |
boolean |
resampling |
int |
upperBound |
rng
Constructor and Description |
---|
DiscreteBoundedDistribution(DiscreteDistribution baseDist) |
DiscreteBoundedDistribution(DiscreteDistribution baseDist,
int lowerBound) |
DiscreteBoundedDistribution(DiscreteDistribution baseDist,
int lowerBound,
int upperBound) |
DiscreteBoundedDistribution(DiscreteDistribution baseDist,
int lowerBound,
int upperBound,
boolean resampling) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public final DiscreteDistribution baseDist
public final int lowerBound
public final int upperBound
public final boolean resampling
public DiscreteBoundedDistribution(DiscreteDistribution baseDist, int lowerBound, int upperBound, boolean resampling)
public DiscreteBoundedDistribution(DiscreteDistribution baseDist, int lowerBound, int upperBound)
public DiscreteBoundedDistribution(DiscreteDistribution baseDist, int lowerBound)
public DiscreteBoundedDistribution(DiscreteDistribution baseDist)
public int next()
DiscreteDistribution
next
in class DiscreteDistribution