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.


simts documentation built on Aug. 31, 2023, 5:07 p.m.