Skip to contents

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