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.
dist_spec(
distribution = c("lognormal", "normal", "gamma", "fixed", "empty"),
params_mean = numeric(0),
params_sd = numeric(0),
max = Inf,
pmf = numeric(0),
fixed = FALSE
)
A list of distribution options.
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
as params_mean
, and their uncertainty as params_sd
.
Numeric. Central values of the parameters of the distribution as defined in [natural_params().
Numeric. Standard deviations of the parameters of the distribution as defined in [natural_params().
Numeric, maximum value of the distribution. The distribution will
be truncated at this value. Default: Inf
, i.e. no maximum.
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
, and params_sd
.
Deprecated, use fix_parameters()
instead.