Find ECG events by localizing the R wave peaks.
RawThe raw data.
intThe index to assign to found ECG events.
None | strThe name of the channel to use for ECG peak detection.
If None (default), ECG channel is used if present. If None and
no ECG channel is present, a synthetic ECG channel is created from
the cross-channel average. This synthetic channel can only be created from
MEG channels.
floatStart ECG detection after tstart seconds. Useful when the beginning
of the run is noisy.
floatLow pass frequency to apply to the ECG channel while finding events.
floatHigh pass frequency to apply to the ECG channel while finding events.
float | strBetween 0 and 1. qrs detection threshold. Can also be “auto” to automatically choose the threshold that generates a reasonable number of heartbeats (40-160 beats / min).
str | int | NoneNumber of taps to use for filtering.
Return the ECG data. This is especially useful if no ECG channel
is present in the input data, so one will be synthesized. Defaults to
False.
Whether to omit bad segments from the data before fitting. If True
(default), annotated segments whose description begins with 'bad' are
omitted. If False, no rejection based on annotations is performed.
New in version 0.18.
str | int | NoneControl verbosity of the logging output. If None, use the default
verbosity level. See the logging documentation and
mne.verbose() for details. Should only be passed as a keyword
argument.
arrayThe events corresponding to the peaks of the R waves.
strName of channel used.
floatThe estimated average pulse. If no ECG events could be found, this will be zero.
array | NoneThe ECG data of the synthesized ECG channel, if any. This will only
be returned if return_ecg=True was passed.
See also
mne.preprocessing.find_ecg_events#