do.generate.random.samples: Internal function for subclasses to generate random samples...

do.generate.random.samplesR Documentation

Internal function for subclasses to generate random samples from a distribution

Description

This function is provided to be overriden by developers. End users should instead call generate.random.samples

Usage

do.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

The wrapper generate.random.samples takes care of formatting the return value and generating warnings for any improper variables

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 July 27, 2024, 3:29 p.m.