This is documentation for an old release of SciPy (version 0.8.). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.signal.detrend

scipy.signal.detrend(data, axis=-1, type='linear', bp=0)

Remove linear trend along axis from data.

If type is ‘constant’ then remove mean only.

If bp is given, then it is a sequence of points at which to
break a piecewise-linear fit to the data.

Previous topic

scipy.signal.decimate

Next topic

scipy.signal.resample

This Page