rtnorm: Truncate normal distribution

View source: R/utils.R

rtnormR Documentation

Truncate normal distribution

Description

Truncate normal distribution at a minimum or maximum value

Usage

rtnorm(n, mean, sd, a = -Inf, b = Inf)

Arguments

n

Number of samples to be drawn

mean

Mean value of normal distribution

sd

Standard deviation of Normal distribution

a

Minimum of distribution (Default is -Inf)

b

Maximum of distribution (Default is Inf)

Value

numeric vector of length n with randomly drawn numbers of the truncated normal distribution


KWB-R/kwb.fcr documentation built on Nov. 14, 2023, 5:17 a.m.