norm_rej: Normal rejection sampling

Description Usage Arguments Value Examples

View source: R/normal_rejection.R

Description

norm_rej is used for normal rejection sampling.

Usage

1
norm_rej(a, b = Inf)

Arguments

a

lower bound

b

upper bound

Value

norm_rej returns a list x: sampled value; and acc: total number of draw used.

Examples

1
2
set.seed(1)
norm_rej(a=1, b=Inf)

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