Skip to contents

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.