exp_acc_opt: Acceptance rate of translated-exponential rejection sampling

Description Usage Arguments Examples

View source: R/exp_acc.R

Description

exp_acc_opt calculates the acceptance rate of translated-exponential rejection sampling for the truncation interval (a,b).

Usage

1

Arguments

a

lower bound for truncation.

b

upper bound for truncation.

Examples

1
2
set.seed(1203)
exp_acc_opt(1,2)

tmvmixnorm documentation built on Sept. 19, 2020, 1:07 a.m.