rmart#

rmart(datafile, outfile, nchans, chanlist, eogchan, threshold=80.0, *, format=None)#

Remove threshold-triggered EOG artifacts from a float32 data file.

chanlist and eogchan use EEGLAB-facing one-based channel numbers. The input and output are channel-major float32 matrices stored in MATLAB column order. The corrected selected channels are returned as well as written to outfile.

This implements the intended 40-lag local regression described by EEGLAB’s legacy rmart rather than its currently unreachable processing branch. ICA or ASR is generally preferable for new analyses.

Parameters:
Return type:

ndarray