rmbase#
- rmbase(data, frames=0, basevector=0, *, return_mean=False)#
Subtract per-channel baseline means from continuous or epoched data.
- Parameters:
data (Any) – Data array shaped
(channels, frames * epochs)or(channels, frames, epochs).frames (int | None) – Samples per epoch.
0orNoneuses the full second dimension, matching EEGLAB’s default.basevector (Any) – EEGLAB-style 1-based baseline frame indices, or
0/ empty for the whole epoch.return_mean (bool) – When true, return
(dataout, datamean).
- Returns:
Baseline-corrected data, and optionally the channel-by-epoch means.