exp_acc_opt: Acceptance rate of translated-exponential rejection sampling

View source: R/exp_acc.R

exp_acc_optR Documentation

Acceptance rate of translated-exponential rejection sampling

Description

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

Usage

exp_acc_opt(a, b)

Arguments

a

lower bound for truncation.

b

upper bound for truncation.

Examples


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


tmvmixnorm documentation built on May 11, 2026, 9:07 a.m.