powered by
exp_rej is used for translated-exponential rejection sampling.
exp_rej
exp_rej(a, b = Inf, lam = "default")
lower bound
upper bound
lambda for translated-exponential only
exp_rej returns a list x: sampled value; and acc: total number of draw used.
x
acc
# NOT RUN { set.seed(1) exp_rej(a=1, b=Inf) # }
Run the code above in your browser using DataLab