Research Article
An Adaptive and Time-Efficient ECG R-Peak Detection Algorithm
Pseudocode 1: The pseudocode of the threshold procedure.
Tref = localmax1; Cref = localmax2; Rref=localmax3; t_p = time period (abs (Tref - Cref)); | WTref = width (Tref); WCref = width (Cref); ATref = amplitude (Tref); ACref = amplitude (Cref); | If t_p < ti_t | If WTref < WCref | localmax1 is a true R-peak; | Else if WTref > WCref | localmax2 is a true R-peak; | Else if ATref > ACref | localmax1 is a true R-peak; | Else | localmax2 is a true R-peak; | End if | End if | Else | localmax1 is a true R-peak; | End if | End if | If Rref is not NULL | False R-peak is replaced by the Rref, and repeat the algorithm with new Tref and Cref; | End if |
|
Pseudocode 1: The pseudocode of the threshold procedure. |