| dtriang | R Documentation |
Symmetric triangular density with endpoints equal to min and max.
dtriang(x, min = 0, max = 1)
x |
Vector of quantiles. |
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 \le x \le \mu, and
4 (b-x) / (b-a)^2 for \mu < x \le b, where
a and b are the endpoints, and the mean of the distribution is \mu = (a+b) / 2.
dtriang gives the density.
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
ptriang, qtriang, and rtriang.
dtriang( seq( 100, 200, length.out=11 ), 100, 200 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.