bemobil_mne.preproc.compute_asr#

bemobil_mne.preproc.compute_asr(raw, cutoff=20, estimator='scm')[source]#

Apply ASR to the EEG channels of raw.

Parameters:
rawmne.io.Raw

Continuous EEG recording. Non-EEG channels are left untouched.

cutofffloat

ASR cutoff parameter (standard deviations above the clean baseline before a component is reconstructed). Lower = more aggressive. Typical range 5–20; 20 is conservative.

estimatorstr

Covariance estimator passed to meegkit.asr.ASR. "scm" is the meegkit default (sample covariance matrix). "lwf" (Ledoit-Wolf) is more robust when channel count is high relative to the calibration window length.

Returns:
raw_asrmne.io.Raw

Copy of raw with ASR applied to EEG channels.