sampler: Generic method for sampling from distribution-like objects.

View source: R/generic_dist.R

samplerR Documentation

Generic method for sampling from distribution-like objects.

Description

It creates a sampler for the x object. It returns a function that accepts a parameter n denoting the number of samples to draw from the x object and also any additional parameters ... are passed to the generated function.

Usage

sampler(x, ...)

Arguments

x

the x object to create a sampler for

...

additional arguments to pass


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