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.

  • X (torch.Tensor) – EEG input example or batch.

  • y (torch.Tensor) – EEG labels for the example or batch.

  • delta_freq (float) – The amplitude of the frequency shift (in Hz).

  • sfreq (float) – Sampling frequency of the signals to be transformed.


  • torch.Tensor – Transformed inputs.

  • torch.Tensor – Transformed labels.