Description Usage Arguments Source Examples
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
.
1 | tnorm(n, lo, hi, mu, sig)
|
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 |
Code written by Jim Clark, Duke University, Durham, NC, USA
1 | tnorm(5, 2, 7, 5, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.