This function is deprecated as a user-facing function (while its
functionality is still used internally). Construct distributions using
the corresponding distribution function such as
Gamma(), LogNormal(),
Normal() or Fixed() instead.
Arguments
- distribution
Character, defaults to "lognormal". The (discretised) distribution to be used. Can be "lognormal", "gamma", "normal" or "fixed". The corresponding parameters (defined in
natural_params()) are passed asparams_mean, and their uncertainty asparams_sd.- params_mean
Numeric. Central values of the parameters of the distribution as defined in [natural_params().
- params_sd
Numeric. Standard deviations of the parameters of the distribution as defined in [natural_params().
- max
Numeric, maximum value of the distribution. The distribution will be truncated at this value. Default:
Inf, i.e. no maximum.- pmf
Numeric, a vector of values that represent the (nonparametric) probability mass function of the delay (starting with 0); defaults to an empty vector corresponding to a parametric specification of the distribution (using
params_mean, andparams_sd.- fixed
Deprecated, use
fix_parameters()instead.