bundles / scipy 1.17.1 / scipy / stats / _continuous_distns / trapezoid_gen
class
scipy.stats._continuous_distns:trapezoid_gen
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.
%(example)s
Aliases
-
scipy.stats._continuous_distns.trapezoid_gen