realise: Generate a Sample from a Distribution

View source: R/realise.R

realiseR Documentation

Generate a Sample from a Distribution

Description

Draw n independent observations from a distribution.

Usage

realise(distribution, n = 1)

realize(distribution, n = 1)

observe(distribution, n = 1)

Arguments

distribution

Distribution.

n

Number of observations to generate

Value

Vector of independent values drawn from the inputted distribution

Note

realise(), realize(), and observe() all do the same thing. Although the language observe() is more common, it's only an alias here, because this function name is common amongst other packages.


vincenzocoia/distionary documentation built on March 5, 2024, 3:13 a.m.