rmap.dist: Method for obtaining g(x)) where x is a 'dist' object.

View source: R/dist.R

rmap.distR Documentation

Method for obtaining g(x)) where x is a dist object.

Description

We just sample from x and place the sample in empirical_dist and then apply rmap with g to it.

Usage

## S3 method for class 'dist'
rmap(x, g, n = 10000L, ...)

Arguments

x

The distribution object.

g

The function to apply to the distribution.

n

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.


queelius/algebraic.dist documentation built on Jan. 27, 2025, 8:46 a.m.