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 calling combine_evoked([evoked1, -evoked2], 'equal')

Warning

If you provide an array of weights instead of using ‘equal’ or ‘nave’, strange things may happen with your resulting signal amplitude and/or nave attribute.

Parameters
all_evokedlist of Evoked

The evoked datasets.

weightslist 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
evokedEvoked

The new evoked data.

Notes

New in version 0.9.0.