This is documentation for an old release of SciPy (version 0.17.1). Search for this page in the documentation of the latest stable release (version 1.15.1).
Triangular Distribution¶
One shape parameter c∈[0,1] giving the distance to the peak as a percentage of the total extent of the non-zero portion. The location parameter is the start of the non- zero portion, and the scale-parameter is the width of the non-zero portion. In standard form we have x∈[0,1].
f(x;c)={2xcx<c21−x1−cx≥cF(x;c)={x2cx<cx2−2x+cc−1x≥cG(q;c)={√cqq<c1−√(1−c)(1−q)q≥c
μ=c3+13μ2=1−c+c218γ1=√2(2c−1)(c+1)(c−2)5(1−c+c2)3/2γ2=−35
h(X)=log(12√e)≈−0.19314718055994530942.
Implementation: scipy.stats.triang