Identifies ectopic (abnormal) beats by comparing each RR interval to the local median computed over a sliding window of 5 beats. Beats with deviation exceeding the threshold are marked as ectopic.
Arguments
- rr
A data.frame with columns
channel,rr_ms, andtime_sec, as returned byecgRRintervals.- threshold_ms
Maximum allowed deviation from local median in milliseconds (default: 300).
References
Clifford, G.D., Azuaje, F. & McSharry, P.E. (2006). Advanced Methods and Tools for ECG Data Analysis. Artech House.
Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology (1996). "Heart rate variability: Standards of measurement, physiological interpretation and clinical use." Circulation, 93(5), 1043–1065.
See also
ecgRRcorrect for correcting detected ectopic beats,
ecgRRintervals for computing RR intervals,
ecgHRVtime for time-domain HRV analysis,
ecgSignalQuality for signal quality assessment.