Functions to compute the probability density function, cumulative distribution function, and quantile function for the Triangular distribution.
Usage
triangular_pdf(x, lower = 0, mode = 1, upper = 2)
triangular_lpdf(x, lower = 0, mode = 1, upper = 2)
triangular_cdf(x, lower = 0, mode = 1, upper = 2)
triangular_lcdf(x, lower = 0, mode = 1, upper = 2)
triangular_quantile(p, lower = 0, mode = 1, upper = 2)
Value
A single numeric value with the computed probability density, log-probability density, cumulative distribution, log-cumulative distribution, or quantile depending on the function called.
See also
Boost Documentation for more details on the mathematical background.