mne.combine_evoked

mne.combine_evoked(all_evoked, weights)[source]

Merge evoked data by weighted addition or subtraction.

Data should have the same channels and the same time instants. Subtraction can be performed by passing negative weights (e.g., [1, -1]).

Parameters:

all_evoked : list of Evoked

The evoked datasets.

weights : list of float | str

The weights to apply to the data of each evoked instance. Can also be 'nave' to weight according to evoked.nave, or "equal" to use equal weighting (each weighted as 1/N).

Returns:

evoked : Evoked

The new evoked data.

Notes

New in version 0.9.0.