rtruncated_normal: Truncated Normal Distribution Sampling Algorithm

View source: R/RcppExports.R

rtruncated_normalR Documentation

Truncated Normal Distribution Sampling Algorithm

Description

Enables sampling from a truncated normal

Usage

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

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

schoi355/gmwm documentation built on April 11, 2022, 1:21 a.m.