systole.correction.correct_missed_peaks#
- systole.correction.correct_missed_peaks(peaks: Union[List, ndarray], idx: int) ndarray [source]#
Correct missed peaks in boolean peak vector.
The new peak is placed in the middle of the previous interval.
- Parameters
- peaks
Boolean vector of peaks detection.
- idxint
Index of the peaks corresponding to the missed RR interval. The new peaks will be placed between this one and the previous one.
- Returns
- clean_peaks
Corrected boolean vector of peaks.