rtruncated_normal: Truncated Normal Distribution Sampling Algorithm

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

Enables sampling from a truncated normal

Usage

1
rtruncated_normal(n, mu, sigma, a, b)

Arguments

n

An unsigned int indicating the number of observations to generate.

mu

A double indicating the mean of the normal.

sigma

A double indicating the standard deviation of the normal.

a

A double that is the lower bound of the truncated normal.

b

A double that is the upper bound of the truncated normal.

Examples

1
rtruncated_normal(10, 1, 1, -2, 2)

SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.