R-Peak Detection Algorithm for Ecg using Double Difference And RR Interval Processing | Synapse