Triangular

The density function of the triangular distribution is

\[  f(x) = \left\{  \begin{array}{ll} \frac{2(x - a)}{(m - a)(b - a)} &  a \le x \le m \\ \frac{2(b - x)}{(b - m)(b - a)} &  m < x \le b \\ \end{array} \right.  \]

where $a$, $b$, and $m$ are real numbers with $a < m < b$.

Parameters:

$a$

is the minimum.

$b$

is the maximum.

$m$

is the mode.