mne.
set_eeg_reference
(inst, ref_channels='average', copy=True, projection=False, 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 projection.
Some common referencing schemes and the corresponding value for the
ref_channels
parameter:
ref_channels=[]
. This will prevent MNE-Python from automatically
adding an average reference projection.ref_channels='average'
. Bad EEG channels are
automatically excluded if they are properly set in info['bads']
.ref_channels
to a list containing the name of the channel that
will act as the new reference, for example ref_channels=['Cz']
.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: |
|
---|---|
Returns: |
|
See also
set_bipolar_reference
Notes
ref_channels='average'
and projection=True
.info['bads']
.New in version 0.9.0.
mne.set_eeg_reference
¶