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
  • 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.

Returns

  • torch.Tensor – Transformed inputs.

  • torch.Tensor – Transformed labels.