systole.utils.time_shift#

systole.utils.time_shift(x: Union[List, ndarray], events: Union[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).