find_u_v: find_u_v

View source: R/PulseWaveform.R

find_u_vR Documentation

find_u_v

Description

find_u_v identifies the points on the systolic upstroke that correspond to the two half maximum values on the corresponding first derivative peak. The first, before w, is denoted U. The second, after w, is denoted V.

Usage

find_u_v(wx, wy, d1, d1p, spline, sr, plot)

Arguments

wx

A vector of x-coordinates corresponding to w points on the PPG time series

wy

A vector of y-coordinates corresponding to w points on the PPG time series

d1

The first derivative time series, discrete form

d1p

The first derivative time series, polynomial spline form

spline

The original PPG time series, polynomial spline form

sr

samplingRate

plot

Logical, will plot the first derivative time series with U and V values as points if set to true

Value

uX

A vector of x-xoordinates corresponding to U points on the PPG time series

uY

A vector of y-xoordinates corresponding to U points " "

vX

A vector of x-xoordinates corresponding to V points " "

vY

A vector of y-xoordinates corresponding to V points " "

Examples

find_u_v(wx = w$wX, wy = w$wY, d1 = deriv1, d1p = deriv1Poly,
     spline = splinePoly, sr = samplingRate, plot=F)

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