mne.event.
define_target_events
(events, reference_id, target_id, sfreq, tmin, tmax, new_id=None, fill_na=None)[source]¶Define new events by co-occurrence of existing events.
This function can be used to evaluate events depending on the temporal lag to another event. For example, this can be used to analyze evoked responses which were followed by a button press within a defined time window.
Parameters: | events : ndarray
reference_id : int
target_id : int
sfreq : float
tmin : float
tmax : float
new_id : int
fill_na : int | None
|
---|---|
Returns: | new_events : ndarray
lag : ndarray
|
mne.event.define_target_events
¶