Algorithm 2 Estimation of the RR from the signal’s baseline wander | |
Input: signal , Troughs of signal K, and the length of moving average | |
filter L | |
Output: | |
1: | Spline (K, , 1 to length()) |
2: | ones(L,1) |
3: | filtfilt(,1,) |
4: | |
5: | FFT () |
6: | find( Max()) |
7: | r × 60 |
8: | return |