Function Reference: tristat

statistics: [m, v] = tristat (a, b, c)

Compute statistics of the Triangular distribution.

[m, v] = tristat (a, b, c) returns the mean and variance of the Triangular distribution with lower limit parameter a, peak location (mode) parameter b, and upper limit parameter c.

The size of m (mean) and v (variance) is the common size of the input arguments. A scalar input functions as a constant matrix of the same size as the other inputs.

Note that the order of the parameter input arguments has been changed after statistics version 1.6.3 in order to be MATLAB compatible with the parameters used in the TriangularDistribution probability distribution object. More specifically, the positions of the parameters b and c have been swapped. As a result, the naming conventions no longer coinside with those used in Wikipedia, in which b denotes the upper limit and c denotes the mode or peak parameter.

Further information about the triangular distribution can be found at https://en.wikipedia.org/wiki/Triangular_distribution

See also: tcdf, tinv, tpdf, trnd

Source Code: tristat