ur function

Sample from a distribution specified by a "unuran" object

Sample from a distribution specified by a "unuran" object

Get random sample from a unuran object in package Runuran.

[Universal] -- Sampling Function.

ur(unr, n=1) unuran.sample(unr, n=1)

Arguments

  • unr: a unuran object.
  • n: sample size.

See Also

runif and .Random.seed about random number generation, unuran for the UNU.RAN class.

Note

unuran.sample is just an (older) longer name for ur.

Author(s)

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

Examples

## Draw random sample of size 10 from normal distribution using ## method 'TDR' unr <- unuran.new("normal","tdr") x <- ur(unr,n=10)
  • Maintainer: Josef Leydold
  • License: GPL (>= 2)
  • Last published: 2025-04-07