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

View source: R/normal.R

sampler.normalR Documentation

Method for sampling from a normal object.

Description

Method for sampling from a normal object.

Usage

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

Arguments

x

The normal object to sample from

...

Additional arguments to pass (not used)

Value

A function that samples from the normal distribution. As input, it accepts a sample size n, a numeric mu, and a variance numeric var. By default, mu and var are the mean and variance of object x.


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