Trapezoidal Distribution#

Two shape parameters c[0,1],d[0,1] giving the distances to the first and second modes 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].

u(c,d)=2dc+1f(x;c,d)={uxcx<cucxdu1x1dx>dF(x;c,d)={ux22cx<cuc2+u(xc)cxd1u(1x)22(1d)x>dG(q;c,d)={qc(dc+1)q<cqu+c2qd12(1q)(1d)uq>d

Implementation: scipy.stats.trapezoid