sampler.lognormal: Sampler for a log-normal distribution.

View source: R/lognormal.R

sampler.lognormalR Documentation

Sampler for a log-normal distribution.

Description

Returns a function that draws n independent samples from the log-normal distribution.

Usage

## S3 method for class 'lognormal'
sampler(x, ...)

Arguments

x

A lognormal object.

...

Additional arguments (not used).

Value

A function function(n = 1, ...) returning a numeric vector of length n.

Examples

x <- lognormal(0, 1)
s <- sampler(x)
set.seed(42)
s(5)

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