bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _continuous_distns / trapezoid_gen
class
scipy.stats._continuous_distns:trapezoid_gen
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_continuous_distns.py:9985
Signature
class trapezoid_gen(momtype = 1, a = None, b = None, xtol = 1e-14, badvalue = None, name = None, longname = None, shapes = None, seed = None)Members
Summary
A trapezoidal continuous random variable.
Extended Summary
%(before_notes)s
Notes
The trapezoidal distribution can be represented with an up-sloping line from loc to (loc + c*scale), then constant to (loc + d*scale) and then downsloping from (loc + d*scale) to (loc+scale). This defines the trapezoid base from loc to (loc+scale) and the flat top from c to d proportional to the position along the base with 0 <= c <= d <= 1. When c=d, this is equivalent to triang with the same values for loc, scale and c. The method of [1] is used for computing moments.
trapezoid takes and as shape parameters.
%(after_notes)s
The standard form is in the range [0, 1] with c the mode. The location parameter shifts the start to loc. The scale parameter changes the width from 1 to scale.
Aliases
scipy.stats._continuous_distns.trapezoid_gen