PyDocs

Nav

Numeric and Mathematical Modules

triangular

random

function (source)
  • triangular(low, high, mode)
Triangular distribution.

Continuous distribution bounded by given lower and upper limits,
and having a given mode value in-between.

http://en.wikipedia.org/wiki/Triangular_distribution

The mean (expected value) and variance of the random variable are:

    E[X] = (low + high + mode) / 3
    Var[X] = (low**2 + high**2 + mode**2 - low*high - low*mode - high*mode) / 18
0 Examples
No examples for random/triangular.
See Also
No see-alsos for random/triangular
0 Notes
No notes for triangular