public class NegExpDistribution extends ContinuousDistribution
Meaning: | Time distance between two events (e.g., arrival, process end,...) in a Markovian process with the average rate \(\lambda\) |
---|---|
Parameters: | mean value \(m\) or rate \(\lambda = \frac{1}{m}\) |
PDF: | \(P(T=t) = f(t) = \lambda \cdot exp(-\lambda t) = \frac{1}{m} \cdot exp(-\frac{t}{m}) \) |
DF: | \(P(T \le t) = F(t) = 1-exp(-\lambda t) = 1-exp(-\frac{1}{m}) \) |
Expected value: | \(E[T]= \frac{1}{\lambda} = m \) |
Variance: | \(VAR[T]= \frac{1}{\lambda^2} = m^2 \) |
Coefficient of variation: | \(c_T= 1\) |
LST: | \(\phi(s) = \frac{\lambda}{\lambda + s} = \frac{1}{1 + ms}\) |
Parser example: |
[...].Distribution = NegExp
|
Modifier and Type | Field and Description |
---|---|
double |
mean |
rng
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
NegExpDistribution(double mean) |
NegExpDistribution(double mean,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
static NegExpDistribution |
createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
as required by
ReflectionConstructable |
double |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public NegExpDistribution(double mean, RandomNumberGenerator rng)
public NegExpDistribution(double mean)
public static NegExpDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructable
public double next()
ContinuousDistribution
next
in class ContinuousDistribution