find_o: find_o

View source: R/PulseWaveform.R

find_oR Documentation

find_o

Description

find_o identifies the origin of the systolic peak for each beat. In the absence of a clear inflection point at the origin, O points are derived from inflection points in the first derivative.

Usage

find_o(wx, inx, iny, d1p, sp)

Arguments

wx

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

inx

A vector of all inflection point x-coordinates in the PPG time series

iny

A vector of all inflection point y-coordinates in the PPG time series

d1p

The first derivative time series, polynomial spline form

sp

The original PPG time series, polynomial spline form

Value

o

vector of o points

inx

vector of updated inflection point x-coordinates

iny

vector of updated inflection point y-coordinates

Examples

tmp <- find_o(wx = w$wX, inx = inflexX, iny = inflexY, d1p = deriv1Poly, sp = splinePoly)

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