halfnorm_acc {tmvmixnorm} | R Documentation |
halfnorm_acc
calculates the acceptance rate of half-normal rejection sampling for the truncation interval (a,b).
halfnorm_acc(a, b)
a |
lower bound for truncation. |
b |
upper bound for truncation. |
set.seed(1203)
halfnorm_acc(1,2)