Falls back to realize and delegates to rmap.empirical_dist.

# S3 method for class 'edist'
rmap(x, g, ...)

Arguments

x

An edist object.

g

Function to apply to each observation.

...

Additional arguments forwarded to g.

Value

A transformed empirical_dist.

Examples

# \donttest{
set.seed(1)
z <- normal(0, 1) * exponential(1)
abs_z <- rmap(z, abs)
mean(abs_z)
#> [1] 0.8046673
# }