braindecode.preprocessing.InterpolateBridgedElectrodes#
- class braindecode.preprocessing.InterpolateBridgedElectrodes(bridged_idx, bad_limit=4)[source]#
Braindecode preprocessor wrapper for
interpolate_bridged_electrodes().Interpolate bridged electrode pairs.
Because bridged electrodes contain brain signal, it’s just that the signal is spatially smeared between the two electrodes, we can make a virtual channel midway between the bridged pairs and use that to aid in interpolation rather than completely discarding the data from the two channels.
- Parameters:
- instinstance of Epochs, Evoked, or Raw
The data object with channels that are to be interpolated.
- bridged_idxlist of tuple
The indices of channels marked as bridged with each bridged pair stored as a tuple.
- bad_limitint
The maximum number of electrodes that can be bridged together (included) and interpolated. Above this number, an error will be raised.
Added in version 1.2.
- Returns:
- instinstance of Epochs, Evoked, or Raw
The modified data object.
Methods
- fn(bridged_idx, bad_limit=4)[source]#
Interpolate bridged electrode pairs.
Because bridged electrodes contain brain signal, it’s just that the signal is spatially smeared between the two electrodes, we can make a virtual channel midway between the bridged pairs and use that to aid in interpolation rather than completely discarding the data from the two channels.
- Parameters:
inst (instance of Epochs, Evoked, or Raw) – The data object with channels that are to be interpolated.
bridged_idx (list of tuple) – The indices of channels marked as bridged with each bridged pair stored as a tuple.
bad_limit (int) –
The maximum number of electrodes that can be bridged together (included) and interpolated. Above this number, an error will be raised.
Added in version 1.2.
- Returns:
inst – The modified data object.
- Return type:
instance of Epochs, Evoked, or Raw