find_w: find_w

View source: R/PulseWaveform.R

find_wR Documentation

find_w

Description

find_w identifies peaks in the first derivative of the PPG time series (denoted w on the original PPG pulse wave). A rolling window relative to heart rate is applied to identify beats and artefacts. Peaks identified within a window are confirmed as genuine / artefactual with a series of checks against thresholds derived from beats local to the window and across the entire time series.

Usage

find_w(d1p, deriv1, sp, sr)

Arguments

d1p

polynomial spline of first derivative of the PPG time series

deriv1

first derivative in discrete form

sp

polynomial spline of original time series

sr

sample rate

Value

wX

x axis coordinates of all w points

wY

y axis coordinates of all w points on original PPG trace

wYD1

y axis coordinates of all w points on 1st derivative trace

References

Elgendi et al, 2018: Toward generating more diagnostic features from photoplethysmogram waveforms.

Examples

w <- find_w(d1p = deriv1Poly, deriv1 = deriv1, sp = splinePoly, sr = samplingRate)

stw32/PulseWaveform documentation built on Dec. 6, 2022, 2:50 a.m.