norm_rej {tmvmixnorm} | 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)