Description Usage Arguments Details Value Author(s) See Also Examples
Symmetric triangular random generation with endpoints equal to min
and max
.
1 |
n |
Number of observations. If |
min |
Left endpoint of the triangular distribution. |
max |
Right endpoint of the triangular distribution. |
The triangular distribution has density 4 (x-a) / (b-a)^2 for a ≤ x ≤ μ, and 4 (b-x) / (b-a)^2 for μ < x ≤ b, where a and b are the endpoints, and the mean of the distribution is μ = (a+b) / 2.
rtriang
generates random deviates.
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
dtriang
, ptriang
, and qtriang
.
1 2 3 | # 20 random variates from a Triangular( 100, 200 ) distribution.
rtriang( 20, 100, 200 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.