The parameters are set to generate numbers from a half-normal distribution
by default.
Usage
rtnorm(n, m = 0, s = 1, lower = 0, upper = Inf)
Arguments
- n
Number of samples.
- m
The mean of the untruncated normal distribution.
- s
The standard deviation of the untruncated normal distribution.
- lower
The lower bound for truncation.
- upper
The upper bound for truncation.