public class CeiledDistribution extends DiscreteDistribution
| Meaning: | The "ceiled distribution" is a discrete distribution that converts the
value obtained from a continuous ("base") distribution to an integer value
using the
ceil() function from the Java
Math package.
ceil(x)
implements the ceiling operator \(\left \lceil x \right \rceil\), i.e. it
yields the smallest integer value not less than \(x\). |
|---|---|
| Parameters: | continuous base distribution \(f(x)\) (DF \(F(x)\)) |
| Distribution: | \(P(X=i) = F(i)-F(i-1)\) |
| Parser example: |
[...].Distribution = CeiledDistribution
|
| Modifier and Type | Field and Description |
|---|---|
ContinuousDistribution |
baseDist |
rngCREATE_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
CeiledDistribution(ContinuousDistribution baseDist) |
| Modifier and Type | Method and Description |
|---|---|
static CeiledDistribution |
createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
as required by
ReflectionConstructable |
int |
next()
Returns the ceiled value of the base distribution or
Integer.MIN/MAX_VALUE if the value exceeds the integer range. |
getDefaultRNG, getRandomNumberGenerator, resetpublic final ContinuousDistribution baseDist
public CeiledDistribution(ContinuousDistribution baseDist)
public static CeiledDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructablepublic int next()
Integer.MIN/MAX_VALUE if the value exceeds the integer range.next in class DiscreteDistribution