gompertz¶
Syntax¶
Parameters¶
n- A numeric expression representing the shape for the distribution.
b- A numeric expression representing the scale for the distribution.
Returns¶
Return a number consistent with a Gompertz distribution.
Description¶
This action returns a variate of a Gompertz distribution. This distribution behaves according to the formula.
\[
\log\left(1 - \frac{b}{n} \cdot \log(\text{random})\right) / b
\]
The two parameters are typically referred to as the shape (n) and scale (b)
for the distribution.
The action returns a single value for the current agent that is consistent with the distribution. Over a large number of agents, the returned values will collectively represent the specified distribution.
Examples¶
The following state will make entering agents collectively wait with a Gompertz distribution with shape of 5 and scale of 1) of individual hourly wait times: