rtnorm function

Vectorized random number generation from the univariate truncated normal distribution

Vectorized random number generation from the univariate truncated normal distribution

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.

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

See Also

tnorm

  • Maintainer: Leo Belzile
  • License: GPL-3
  • Last published: 2024-07-08

Useful links