braindecode.augmentation.functional.frequency_shift#
- braindecode.augmentation.functional.frequency_shift(X, y, delta_freq, sfreq)[source]#
Adds a shift in the frequency domain to all channels.
Note that here, the shift is the same for all channels of a single example.
- Parameters:
- Return type:
- Returns:
torch.Tensor – Transformed inputs.
torch.Tensor – Transformed labels.