Generic method for applying a map f to distribution object x.

rmap(x, g, ...)

Arguments

x

The distribution object.

g

The function to apply.

...

Additional arguments to pass into g.