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