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