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