We just sample from x and place the sample in empirical_dist and
then apply rmap with g to it.
# S3 method for dist
rmap(x, g, n = 10000L, ...)The distribution object.
The function to apply to the distribution.
The number of samples to generate for the MC estimate of the conditional distribution x | P. Defaults to 10000.
additional arguments to pass into g.