b) A high speed QRS detection algorithm Template Cross correlation method In this method template is cross correlated with the incoming signal. The correlation co-efficient is calculated . The template is considered as window that moves over the incoming signal point by point. The alignment of QRS template sequence with the QRS segment of the signal occur atleast once as the window moves over the incoming signal. During this process the value of cross correlation coefficient always falls betweeb +1& -1. +1 — co-efficient indicates the signal and template exactly match. -1 — co-efficient indicates mismatch of template & signal. QRS complex is detected only when the cross correlation coefficient attain its maximum . Template Cross correlation method (cont…)
The cross correlation estimate of sequences x(n) and y(n) is given by