Description Usage Arguments Details Value Examples
Returns a triangle-distributed vector within the confidence_level
tolerance interval defined by lower
and upper
.
1 2 | rtriangle_within(n, peak = 0.5, lower = 0, upper = 1,
confidence_level = 0.9, lower_bound = -Inf, upper_bound = Inf)
|
n |
(required) integer. The number of random numbers to generate. |
peak |
(optional) numeric. The location of the peak (most likely value) of the triangle distribution. |
lower |
(optional) numeric. The lower |
upper |
(optional) numeric. The upper |
confidence_level |
(optional) numeric. The confidence level at which |
lower_bound |
(optional) numeric. The lower boundary for returned values; no random values can be below this value. e.g. for processes where negative values do not make sense, |
upper_bound |
(optional) numeric. The upper boundary for returned values; no random values can be above this value. |
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
percent of values will fall between lower
and upper
. If an error occurs, will usually return NULL
and print an error message.
1 2 3 | rtriangle_within(10)
rtriangle_within(10, 12, 10, 20)
summary(rtriangle_within(10000, 12, 10, 20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.