sampler.weibull_dist: Sampler for a Weibull distribution.

View source: R/weibull_dist.R

sampler.weibull_distR Documentation

Sampler for a Weibull distribution.

Description

Returns a function that draws n independent samples from the Weibull distribution.

Usage

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

Arguments

x

A weibull_dist object.

...

Additional arguments (not used).

Value

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

Examples

x <- weibull_dist(shape = 2, scale = 3)
s <- sampler(x)
set.seed(42)
s(5)

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