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