rtnorm: Vectorized random number generation from the univariate...

View source: R/tnorm.R

rtnormR Documentation

Vectorized random number generation from the univariate truncated normal distribution

Description

If n is 1, the function returns a vector rather than a matrix. If mu or sd are not specified they assume the default values of 0 and 1, respectively.

Usage

rtnorm(n, mu, sd, lb, ub, method = c("fast", "invtransfo"))

See Also

tnorm


lbelzile/TruncatedNormal documentation built on March 4, 2024, 5:50 p.m.