eegprep.clean_drifts#

eegprep.clean_drifts(EEG, transition=(0.5, 1), attenuation=80.0, method='fft')#

Remove drifts from the data using a forward-backward high-pass filter.

This removes drifts from the data using a forward-backward (non-causal) filter. NOTE: If you are doing directed information flow analysis, do no use this filter but some other one.

Parameters:
  • EEG (Dict[str, Any]) – the continuous-time EEG data structure

  • transition (Sequence[float]) – the transition band in Hz, i.e. lower and upper edge of the transition as in (lo,hi)

  • attenuation (float) – stop-band attenuation, in dB

  • method (str) – the method to use for filtering (‘fft’ or ‘fir’)

Return type:

Dict[str, Any]

Returns#

EEG : the filtered EEG data structure