unif_rej {tmvmixnorm} | R Documentation |
Uniform rejection sampling
Description
unif_rej
is used for uniform rejection sampling.
Usage
unif_rej(a, b)
Arguments
a |
lower bound |
b |
upper bound |
Value
unif_rej
returns a list
x
: sampled value; and
acc
: total number of draw used.
Examples
set.seed(1)
unif_rej(a=1, b=2)
[Package tmvmixnorm version 1.1.1 Index]