trapz_dx

grizli.utils.trapz_dx(x)[source]

Return trapezoid rule coefficients, useful for numerical integration using a dot product

Parameters:
x : array-like

Independent variable

Returns:
dx : array_like

Coefficients for trapezoidal rule integration.