systole.utils.to_angles#

systole.utils.to_angles(x: Union[List, ndarray], events: Union[List, ndarray]) ndarray[source]#

Angular values of events according to x cycle peaks.

Parameters
x

The reference time serie. Time points can be unevenly spaced.

events

The events time serie.

Returns
ang

The angular value of events in the cycle of interest (radians).