Implements the Elgendi two event-related moving-average (TERMA) detector. The shipped windowed-sinc FIR is used in place of the original Butterworth filter. Its linear-phase group delay is explicitly undone by snapping each event-block candidate to the corresponding raw-signal maximum.
Usage
ppgDetectPulses(
x,
w1_ms = 111,
w2_ms = 667,
beta = 0.02,
low = 0.5,
high = 8,
order = 65,
refractory_ms = 300,
assay_name = NULL
)Arguments
- x
A PPG
PhysioExperiment.- w1_ms
Systolic event window in milliseconds.
- w2_ms
Beat window in milliseconds.
- beta
Moving-average threshold offset.
- low, high
PPG band-pass cutoffs in Hz.
- order
FIR order; even values are promoted to the next odd value.
- refractory_ms
Minimum systolic-peak separation in milliseconds.
- assay_name
Optional raw PPG assay name.
Details
This implementation uses the package's pure-R windowed-sinc FIR rather than
the Butterworth filter in the original method. A strong late dicrotic wave
may require increasing refractory_ms so that it is not counted as a second
systolic pulse.
References
Elgendi M, Norton I, Brearley M, Abbott D, Schuurmans D (2013). Systolic peak detection in acceleration photoplethysmograms measured from emergency responders in tropical conditions. PLoS ONE, 8:e76585. doi:10.1371/journal.pone.0076585