halfnorm_acc: Acceptance rate of half-normal rejection sampling

View source: R/halfnorm_acc.R

halfnorm_accR Documentation

Acceptance rate of half-normal rejection sampling

Description

halfnorm_acc calculates the acceptance rate of half-normal rejection sampling for the truncation interval (a,b).

Usage

halfnorm_acc(a, b)

Arguments

a

lower bound for truncation.

b

upper bound for truncation.

Examples

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


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