powered by
norm_acc calculates the acceptance rate of normal rejection sampling for the truncation interval (a,b).
norm_acc
norm_acc(a, b)
lower bound for truncation.
upper bound for truncation.
# NOT RUN { set.seed(1203) norm_acc(1,2) # }
Run the code above in your browser using DataLab