Trace.integrate(method='cumtrapz', **options)[source]

Integrate the trace with respect to time.

Supported Methods


First order integration of data using the trapezoidal rule. Uses integrate_cumtrapz()


Integrates by generating an interpolating spline and integrating that. Uses integrate_spline()


This operation is performed in place on the actual data arrays. The raw data is not accessible anymore afterwards. To keep your original data, use copy() to create a copy of your trace object. This also makes an entry with information on the applied processing in stats.processing of this trace.