trRnorm function

Truncated Normal Sampling

Truncated Normal Sampling

Random numbers from truncated univariate normal.

trRnorm(n, mu = 0, sd = 1, a = -Inf, b = Inf)

Arguments

  • n: The number of points to sample.
  • mu: The mean of the distribution.
  • sd: The standard deviation.
  • a: The lower truncation point.
  • b: The upper truncation point.
  • Maintainer: Pieter Schoonees
  • License: GPL (>= 2)
  • Last published: 2016-01-05

Useful links