rtnorm_cpp draws from a one-sided truncated univariate normal
distribution.
rttnorm_cpp draws from a two-sided truncated univariate normal
distribution.
rtnorm_cpp(mean, sd, point, above, log = FALSE)rttnorm_cpp(mean, sd, lower, upper, log = FALSE)
A numeric, the random draw.
A numeric, the mean.
A numeric, the standard deviation.
A numeric, the truncation point.
A logical, if TRUE truncation from above and if FALSE
truncation from below.
A logical, if TRUE the draw is taken from the log-normal
distribution.
By default, log = FALSE.
A numeric, the lower truncation point.
A numeric, the upper truncation point.
These function performs no input checks.