systole.correction.interpolate_rr#

systole.correction.interpolate_rr(rr: ndarray, idx: ndarray) ndarray[source]#

Correct long or short beat(s) using linear interpolation.

Parameters
rr

RR intervals (ms).

idxint, np.ndarray

Index of the RR interval that should be interpolated.

Returns
clean_rr

The corrected RR intervals.