generate.random.samples: Generate random samples from a distribution

generate.random.samplesR Documentation

Generate random samples from a distribution

Description

Generate random samples from a distribution

Usage

generate.random.samples(dist, n)

Arguments

dist

An object of class Distribution or a subclass

n

The number of random samples to be generated

Details

Note to developers: This function should not be overridden directly. Insteady override do.generate.random.samples

Value

If n==1, a numeric vector with one value for each variable in the distribution. If there is only one variable in the distribution, a numeric vector with n values. If n>1 and there is more than one variable in the distribution, a matrix with n rows, where each row represents one random sample, and each column represents a variable in the distribution


tfojo1/distributions documentation built on June 1, 2025, 9:07 p.m.