A nonparametric distribution as a <dist_spec>, defined directly by its
probability mass function. The PMF can instead be estimated during model
fitting by passing a Dirichlet() prior.
Arguments
- pmf
Probability mass function, as a zero-indexed numeric vector (the first entry is the mass at zero) or a
<dist_spec>(e.g. fromDirichlet()). A numeric vector is normalised to sum to one.- ...
Limits of the distribution, passed to
bound_dist().
See also
Distributions for an overview and the other distributions.