View source: R/PulseWaveform.R
find_o | R Documentation |
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.
find_o(wx, inx, iny, d1p, sp)
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 |
o |
vector of o points |
inx |
vector of updated inflection point x-coordinates |
iny |
vector of updated inflection point y-coordinates |
tmp <- find_o(wx = w$wX, inx = inflexX, iny = inflexY, d1p = deriv1Poly, sp = splinePoly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.