braindecode.augmentation.functional.frequency_shift¶
- braindecode.augmentation.functional.frequency_shift(X, y, delta_freq, sfreq)¶
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
- Xtorch.Tensor
EEG input example or batch.
- ytorch.Tensor
EEG labels for the example or batch.
- delta_freqfloat
The amplitude of the frequency shift (in Hz).
- sfreqfloat
Sampling frequency of the signals to be transformed.
- Returns
- torch.Tensor
Transformed inputs.
- torch.Tensor
Transformed labels.