trapz_loglog#

gammapy.utils.integrate.trapz_loglog(y, x, axis=- 1)[source]#

Integrate using the composite trapezoidal rule in log-log space.

Integrate y (x) along given axis in loglog space.

Parameters
yndarray

Input array to integrate.

xndarray

Independent variable to integrate over.

axisint, optional

Specify the axis. Default is -1.

Returns
trapzfloat

Definite integral as approximated by trapezoidal rule in loglog space.