tnorm: Truncated Normal Distribution

Description Usage Arguments Source Examples

Description

Random generation for a truncated normal distribution for n random deviates, with lower bound equal to lo, upper bound equal to hi, mean equal mu, standard deviation equal to sd.

Usage

1
tnorm(n, lo, hi, mu, sig)

Arguments

n

- integer specifying the number of draws from the distribition to return

lo

- the lower bound specified for the distribution

hi

- the upper bound specified for the distribution

mu

- the mean of the distribution

sig

- the standard deviation of the distribution

Source

Code written by Jim Clark, Duke University, Durham, NC, USA

Examples

1
tnorm(5, 2, 7, 5, 1)

robschick/smokevis documentation built on May 27, 2019, 11:58 a.m.