cardioception.PAT.scoring.phase_angles#

cardioception.PAT.scoring.phase_angles(delay_ms, period_ms)[source]#

Turn delays after the R-wave into phase angles of the cardiac cycle.

Parameters
delay_msarray-like

Delays from the R-wave to the tone, in ms.

period_msarray-like

Heart periods, in ms, one per delay or a single value for all.

Returns
thetanp.ndarray

2 pi delay / period wrapped into [0, 2 pi), in radians. NaN where either input is NaN.