r-methods {Runuran}R Documentation

Sample from a distribution specified by a "unuran" object

Description

Get random sample from a unuran object in package Runuran.

[Universal] – Sampling Function.

Usage

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

Arguments

unur a unuran object.
n sample size.

Note

This S4 method is equivalent to the function ur. However, it is (slightly) slower due to some overhead for the S4 mechanism.

Author(s)

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

See Also

unuran.


[Package Runuran version 0.9.0 Index]