systole.utils.time_shift#

systole.utils.time_shift(x: List | ndarray, events: List | ndarray, order: str = 'after') ndarray[source]#

Return the delay between x and events.

Parameters:
x

Timing of the baseline events.

events

Timing of events of interest.

order

Consider event occurung before of after baseline. Default is ‘after’.

Returns:
time_shift

The delay between X and events (a.u).