Trapezoidal rule (scipy.integrate.trapezoid): x = sample positions (same length as y) or spacing dx (default 1).
scipy.integrate.trapezoid
x
y
dx
Optional
Trapezoidal rule (
scipy.integrate.trapezoid):x= sample positions (same length asy) or spacingdx(default 1).