lyman.signals.detrend¶
-
lyman.signals.
detrend
(data, axis=- 1, replace_mean=False)[source]¶ Linearly detrend on an axis, optionally replacing the original mean.
- Parameters
- dataarray_like
The input data.
- axisint
The axis along which to detrend the data.
- replace_meanbool
If True, compute the mean before detrending then add it back after.
- Returns
- dataarray_like
Detrended data.