gompertz()
Returns floating point numbers according to a Gompertz distribution.
Synopsis
gompertz(n, b)
Description
This function returns a variate of a Gompertz distribution. This distribution
behaves according to the formula \(log(1 - (b/n) * log(random)) / b\). The
two parameters are typically referred to as the shape (n
) and scale (b
)
for the distribution.
The function 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.
Parameters
n
A numeric expression representing the shape for the distribution.
b
A numeric expression representing the scale for the distribution.
Returns
Returns a floating point number consistent with the specified distribution.
Examples
The following state will make entering agents collectively wait with a Gompertz distribution with shape \(5\) and scale \(1\)) of individual hourly wait times:
state Test {
wait(gompertz(5, 1))
next(Excluded)
}
See Also
bernoulli(), binomial(), cauchy(), chi_squared(), extreme_value(), fisher_f(), gamma(), lognormal(), negative_binomial(), normal(), poisson(), student_t(), uniform(), weibull()