scipy.stats.trapezoid — SciPy v1.7.1 Manual
docs.scipy.org › scipyscipy.stats.trapezoid¶ scipy.stats. trapezoid = <scipy.stats._continuous_distns.trapezoid_gen object> [source] ¶ A trapezoidal continuous random variable. As an instance of the rv_continuous class, trapezoid object inherits from it a collection of generic methods (see below for the full list), and completes them with details specific for this particular distribution.
scipy.integrate.trapezoid — SciPy v1.7.1 Manual
docs.scipy.org › scipyscipy.integrate.trapezoid¶ scipy.integrate. trapezoid (y, x = None, dx = 1.0, axis =-1) ¶ Integrate along the given axis using the composite trapezoidal rule. Integrate y (x) along given axis. Parameters y array_like. Input array to integrate. x array_like, optional. The sample points corresponding to the y values.