public class DiscreteBoundedDistribution extends DiscreteDistribution
Meaning: | Discrete analogon to the continuous bounded distribution, whereby the upper and lower limits each belong to the value range of the random variable \(X\). |
---|---|
Parameters: |
|
Distribution: | \(P(X=i) = p_i = \begin{cases} \frac{q_i}{Q_{b_u}-Q_{b_i}} &\mbox{for } b_l \le i \le b_u \\ 0 &\mbox{else} \end{cases}\) |
Parser example: |
[...].Distribution = DiscreteBoundedDistribution
|
Modifier and Type | Field and Description |
---|---|
DiscreteDistribution |
baseDist |
int |
lowerBound |
boolean |
resampling |
int |
upperBound |
rng
CREATE_INSTANCE_METHOD_NAME
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 |
---|---|
static DiscreteBoundedDistribution |
createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
as required by
ReflectionConstructable |
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 static DiscreteBoundedDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructable
public int next()
DiscreteDistribution
next
in class DiscreteDistribution