Skip to content

lognormal

Syntax

lognormal(median, dispersion)

Parameters

median
The median of the distribution.
dispersion
The dispersion of the distribution.

Returns

Returns a variate of a lognormal distribution.

Description

Returns a variate of a lognormal distribution. It is often used to model waiting times.

Note

The default parameterization is the “multiplicative”, also known as the “geometric parameterization”, i.e., median = exp(μ) and dispersion = exp(σ).

Examples

The following state will make entering agents collectively wait with a lognormal distribution(median = 5, dispersion = 2) of individual hourly wait times:

state Demo {
    wait(lognormal(5, 2))
    next(Excluded)
}

See Also