public class ErlangDistribution extends ContinuousDistribution
Meaning: | Distribution for the sum of \(k\) random variables that are each negative-exponentially distributed with the parameter \(\lambda\) (serial switch in the phase model). |
---|---|
Parameters: |
|
PDF: | \(P(T=t) = f(t) = \lambda \cdot \frac{(\lambda t)^{k-1}}{(k-1)!} \cdot exp(-\lambda t)\) |
DF: | \(P(T \le t) = F(t) = 1 - exp(-\lambda t) \cdot \sum\limits_{i=0}^{k-1} \frac{(\lambda t)^i}{i!} \) |
Expected value: | \(E[T]= \frac{k}{\lambda} = m\) |
Variance: | \(VAR[T]= \frac{k}{\lambda^2} = \frac{m^2}{k}\) |
Coefficient of variation: | \(c_T= \frac{1}{\sqrt{k}} \le 1\) |
LST: | \(\phi(s) = (\frac{\lambda}{\lambda +s})^k = (\frac{1}{1+ms})^k\) |
Parser example: |
[...].Distribution = Erlang
|
Modifier and Type | Field and Description |
---|---|
int |
order |
NegExpDistribution |
phase |
rng
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
ErlangDistribution(double mean,
int order) |
ErlangDistribution(double mean,
int order,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
static ErlangDistribution |
createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
as required by
ReflectionConstructable |
double |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public final int order
public final NegExpDistribution phase
public ErlangDistribution(double mean, int order, RandomNumberGenerator rng)
public ErlangDistribution(double mean, int order)
public static ErlangDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructable
public double next()
ContinuousDistribution
next
in class ContinuousDistribution