public abstract class Distribution
extends java.lang.Object
Distribution
is the common base class for all distributions.
Distributions may either share a common RNG, or use their own RNG. The base
class manages RNGs for use by derived classes.Modifier and Type | Field and Description |
---|---|
protected RandomNumberGenerator |
rng
There should not be any need to change the RNG of a distribution.
|
Constructor and Description |
---|
Distribution() |
Distribution(RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
static RandomNumberGenerator |
getDefaultRNG() |
RandomNumberGenerator |
getRandomNumberGenerator() |
void |
reset()
The default behavior is to do nothing.
|
protected final RandomNumberGenerator rng
public Distribution()
public Distribution(RandomNumberGenerator rng)
public RandomNumberGenerator getRandomNumberGenerator()
public static RandomNumberGenerator getDefaultRNG()
public void reset()