Description Usage Arguments Details Value Examples
Returns a normally distributed vector within the tolerance interval defined by lower
and upper
.
1 2 | rnorm_within(n, lower = 0, upper = 1, confidence_level = 0.9,
sigma = NA)
|
n |
(required) integer. The number of random numbers to generate. |
lower |
(optional) numeric. The lower |
upper |
(optional) numeric. The upper |
confidence_level |
(optional) numeric. The confidence level at which interval |
sigma |
(optional) numeric. If |
confidence_level
indicates the confidence level of the interval [lower, upper]
. For example, a high-confidence estimate might be 0.9973, or six standard deviations between lower
and upper
.
numeric vector with n elements randomly distributed so that approximately confidence_level * 100
percent of values will fall between lower
and upper
. If there is a problem, will return NULL
and print an error message.
1 2 3 | rnorm_within(10)
rnorm_within(10, 10, 20)
summary(rnorm_within(10000, 10, 20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.