Skip to main content
. 2020 May 2;20(9):2594. doi: 10.3390/s20092594
Algorithm 1: Iterative pulse peak detection.
- Input ECG: s← input ECG
- Set sampling frequency fs
- Set a vector of thresholds t for detecting the pulse peaks
- [W] = WSST(sfs) - SSWT transform
- f1 = TFRIDGE(W) - frequency ridge in the range of [0.52] Hz
- f^1 = INTERPRR(f1...4...) - Resample frequencies into 4 Hz
- for thr in t
 [p] = PEAKDET(sthr)
f2 = fs/DIFF(p) - HR frequency
f^2= INTERPRR(f2...4...) - Resample frequencies into 4 Hz
 error(thr) = ABS(f^2-f^1)
- Find set of pulse peaks associated with minimum error