rmap.edist: Map function over expression distribution.

View source: R/edist.R

rmap.edistR Documentation

Map function over expression distribution.

Description

Falls back to realize and delegates to rmap.empirical_dist.

Usage

## 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


set.seed(1)
z <- normal(0, 1) * exponential(1)
abs_z <- rmap(z, abs)
mean(abs_z)


algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.