harmonics¶
- harmonics(y, n, /, axis=- 1)[source]¶
Select the first Fourier harmonics of the time series. Useful for example in removing seasonal cycles.
- Parameters
y (array-like) – The data.
n (int) – The number of harmonics.
axis (int, optional) – The axis along which harmonics are taken.
- Returns
array-like – The Fourier harmonics.