Algorithm 1: Delineation of ECG feature points. |
Input: Vector of ECG data points with amplitude, ECG data sampling rate, Heart rate, Set of referenced feature values. Output: ECG feature point set. Notations: : Maximum amplitude data point, : Candidate R points, : Range of points to locate point X, where , : User defined error margin constant, : Constant to detect R points, : ECG feature point set for cardiac cycle. 1 Initialize ; 2 Estimate cardiac cycle length: ; 3 Calculate # of cardiac cycles: ; 4 Select maximum amplitude data point: ; 5 for to do 6 Initialize ; 7 Select candidate R points: , ; 8 ; // Delineation of feature point R.; 9 ; 10 ; 11 , ; // Delineation of feature point Q.; 12 ; 13 ; 14 , ; // Delineation of feature point P.; 15 ; 16 ; 17 , ; // Delineation of feature point S.; 18 ; 19 ; 20 , ; // Delineation of feature point T.; 21 ; 22 ; 23 endfor 24 return ; |