Get the probability mass function of a nonparametric distribution
Details
An uncertain (Dirichlet-backed) nonparametric distribution has no concrete
PMF, so calling get_pmf() on one is an error. Resolve it to a fixed PMF
first with fix_parameters() (e.g. strategy = "mean").
Examples
dist <- discretise(Gamma(shape = 3, rate = 2, max = 10))
get_pmf(dist)
#> [1] 1.090089e-01 4.559816e-01 3.019114e-01 1.007542e-01 2.544795e-02
#> [6] 5.544248e-03 1.102455e-03 2.060432e-04 3.682103e-05 6.360829e-06