- mne.grand_average(all_inst, interpolate_bads=True, drop_bads=True)[source]#
Make grand average of a list of Evoked or AverageTFR data.
mne.Evokeddata, the function interpolates bad channels based on the
interpolate_badsis True, the grand average file will contain good channels and the bad channels interpolated from the good MEG/EEG channels. For
mne.time_frequency.AverageTFRdata, the function takes the subset of channels not marked as bad in any of the instances.
grand_average.naveattribute will be equal to the number of evoked datasets used to calculate the grand average.
A grand average evoked should not be used for source localization.
The evoked datasets.
If True, bad MEG and EEG channels are interpolated. Ignored for AverageTFR.
If True, drop all bad channels marked as bad in any data set. If neither interpolate_bads nor drop_bads is True, in the output file, every channel marked as bad in at least one of the input files will be marked as bad, but no interpolation or dropping will be performed.
The grand average data. Same type as input.
New in version 0.11.0.
EEG analysis - Event-Related Potentials (ERPs)