mne.set_eeg_reference(inst, ref_channels=None, copy=True, verbose=None)[source]¶Specify which reference to use for EEG data.
By default, MNE-Python will automatically re-reference the EEG signal to use an average reference (see below). Use this function to explicitly specify the desired reference for EEG. This can be either an existing electrode or a new virtual channel. This function will re-reference the data according to the desired reference and prevent MNE-Python from automatically adding an average reference.
Some common referencing schemes and the corresponding value for the
ref_channels parameter:
ref_channels=[]. This will prevent MNE-Python from automatically
re-referencing the data to an average reference.ref_channels=None.ref_channels to the name of the channel that will act as the
new reference.ref_channels to a list of channel names, indicating which
channels to use. For example, to apply an average mastoid reference,
when using the 10-20 naming scheme, set ref_channels=['M1', 'M2'].| Parameters: | inst : instance of Raw | Epochs | Evoked
ref_channels : list of str | None
copy : bool
verbose : bool, str, int, or None
|
|---|---|
| Returns: | inst : instance of Raw | Epochs | Evoked
ref_data : array
|
See also
set_bipolar_referenceNotes
apply_proj() method to apply them.New in version 0.9.0.
mne.set_eeg_reference¶