r-methods {Runuran} | R Documentation |
Get random sample from a unuran
object in package
Runuran.
[Universal] – Sampling Function.
## S4 method for signature 'unuran, numeric': r(unur,n=1)
unur |
a unuran object. |
n |
sample size. |
This S4 method is equivalent to the function
ur
. However, it is (slightly) slower due to some
overhead for the S4 mechanism.
Josef Leydold and Wolfgang H"ormann unuran@statmath.wu-wien.ac.at.