unuran.sample-methods {Runuran}R Documentation

Sample from a distribution specified by an UNU.RAN object

Description

Get random sample from an UNU.RAN object in package Runuran.

Usage

## S4 method for signature 'unuran, numeric':
unuran.sample(unur,n=1)
## S4 method for signature 'unuran, numeric':
r(unur,n=1)

Arguments

unur an "unuran" object.
n sample size.

Note

For performance reasons unuran.sample is implemented as a simple function.

r is an S4 method and equivalent to unuran.sample.

Author(s)

Josef Leydold and Wolfgang H"ormann unuran@statmath.wu-wien.ac.at.

See Also

unuran.


[Package Runuran version 0.7 Index]