Symmetric triangular density with endpoints equal to min
and max
.
1 |
p |
Vector of probabilities. |
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.
qtriang
gives the quantile function.
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
dtriang
, ptriang
, and rtriang
.
1 2 |
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.