halfnorm_rej: Half-normal rejection sampling

Description Usage Arguments Value Examples

View source: R/halfnorm_rejction.R

Description

halfnorm_rej is used for half-normal rejection sampling.

Usage

1

Arguments

a

lower bound

b

upper bound

Value

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

Examples

1
2

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