Learn R Programming

tmvmixnorm (version 1.1.1)

unif_acc: Acceptance rate of uniform rejection sampling

Description

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

Usage

unif_acc(a, b)

Arguments

a

lower bound for truncation.

b

upper bound for truncation.

Examples

Run this code
# NOT RUN {
set.seed(1203)
unif_acc(1,2)

# }

Run the code above in your browser using DataLab