public class DiscreteGeneralDistribution extends DiscreteDistribution
Modifier and Type | Field and Description |
---|---|
ProbabilityVector |
vector |
rng
Constructor and Description |
---|
DiscreteGeneralDistribution(double[] probVector) |
DiscreteGeneralDistribution(double[] probVector,
RandomNumberGenerator rng) |
DiscreteGeneralDistribution(java.util.List<java.lang.Double> probVector) |
DiscreteGeneralDistribution(java.util.List<java.lang.Double> probVector,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public final ProbabilityVector vector
public DiscreteGeneralDistribution(double[] probVector, RandomNumberGenerator rng)
public DiscreteGeneralDistribution(double[] probVector)
public DiscreteGeneralDistribution(java.util.List<java.lang.Double> probVector, RandomNumberGenerator rng)
public DiscreteGeneralDistribution(java.util.List<java.lang.Double> probVector)
public int next()
DiscreteDistribution
next
in class DiscreteDistribution