norm_acc: Acceptance rate of normal rejection sampling

Description Usage Arguments Examples

View source: R/normal_acc.R

Description

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

Usage

1
norm_acc(a, b)

Arguments

a

lower bound for truncation.

b

upper bound for truncation.

Examples

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

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