ur | R Documentation |
Get random sample from a unuran
object in package
Runuran.
[Universal] – Sampling Function.
ur(unr, n=1) unuran.sample(unr, n=1)
unr |
a |
n |
sample size. |
unuran.sample
is just an (older) longer name for ur
.
Josef Leydold and Wolfgang H\"ormann unuran@statmath.wu.ac.at.
runif
and .Random.seed
about random number
generation, unuran
for the UNU.RAN class.
## Draw random sample of size 10 from normal distribution using ## method 'TDR' unr <- unuran.new("normal","tdr") x <- ur(unr,n=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.