sampler.chi_squared: Method for sampling from a 'chi_squared' object.

View source: R/chi_squared.R

sampler.chi_squaredR Documentation

Method for sampling from a chi_squared object.

Description

Method for sampling from a chi_squared object.

Usage

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

Arguments

x

The chi_squared object to sample from

...

Additional arguments (not used)

Value

A function that generates n samples from the chi-squared distribution

Examples

x <- chi_squared(5)
s <- sampler(x)
set.seed(42)
s(5)

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