philistine.mne.abs_threshold¶
-
philistine.mne.
abs_threshold
(epochs, threshold, eeg=True, eog=False, misc=False, stim=False)[source]¶ Compute mask for dropping epochs based on absolute voltage threshold.
Parameters: - epochs (instance of Epochs) – The epoched data to do threshold rejection on.
- threshold (float) – The absolute threshold (in volts) to reject at.
- eeg (bool) – If True include EEG channels in thresholding procedure.
- eog (bool) – If True include EOG channels in thresholding procedure.
- misc (bool) – If True include miscellaneous channels in thresholding procedure.
- stim (bool) – If True include stimulus channels in thresholding procedure.
Returns: rej – Boolean mask for whether or not the epochs exceeded the rejection threshold at any time point for any channel.
Return type: instance of ndarray
Notes
More precise selection of channels can be performed by passing a ‘reduced’ Epochs instance from the various
picks
methods.