View source: R/unif_rejection.R
| unif_rej | R Documentation |
unif_rej is used for uniform rejection sampling.
unif_rej(a, b)
a |
lower bound |
b |
upper bound |
unif_rej returns a list
x: sampled value; and
acc: total number of draw used.
set.seed(1)
unif_rej(a=1, b=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.