Biomedical Engineering Reference
In-Depth Information
21. Qon_indx(k1) = indx;
22. k1 = k1 ? 1;
23. if end of R-peak array index is arrived, skip step 24
24. go to step 2 for next Q-peak and Q_onset detection
25. stop
Appendix 5
The algorithms steps for P, P-onset:
y(blp) = baseline voltage
k = 1% Q-onset array index
slp(i) = 15-point average slope computed at index i
1. i = Q_on(k) - 40% initialization
2. if slp(i) [ 0, go to step 11% inverted P wave
3. i = Q_on(k)
4. y max = y(i) - y(blp)
5. if y(i) - y(blp) \ y max skip step 6
6. y max = y(i) - y(blp), indx = i;
7. i = i - 1;
8. if i \ Q_on(k) - 50, skip step 9
9. P(k) = indx, go to step 19% P-wave peak
10. go to step 5
11. i = Q_on(k)
12. y min = y(i) - y(blp)
13. if y(i) - y(blp) [ y min, skip step 14
14. y min = y(i) - y(blp); indx = i;
15. i = i - 1
16. if i \ Q_on(k) -50, skip step 17
17. P(k) = indx % P-wave peak
18. go to step 13
% P-onset determination
19. i = P(k), slp_mn = abs[slp(i)] % initialization
20. slp_mn = abs[slp(i)] % initialization of minimum average slope
21. if abs[slp (i)] B slp_mn, skip step 22
22. slp_mn = abs[slp(i)], indx = i;
23. i = i - 1;
24. if i [ P(k) - 70 skip step 25
25. P_on(k) = indx, go to step 27
26. go to step 21
% P-offset determination
Search WWH ::




Custom Search