View source: R/PulseWaveform.R
baseline | R Documentation |
baseline generates a spline to fit the wandering baseline of the PPG time series and subtracts it from the time series.
baseline(inx, iny, o, dat, sp, plot = FALSE)
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 |
o |
A vector of all O points |
dat |
The original PPG time series (preprocessed) |
sp |
The original PPG time series, polynomial spline form |
plot |
Logical, plots baseline spline and the original PPG time series |
baseCor |
time series with baseline wander removed |
Given baseline drift is indicative of vasomotion and respiratory modulation, it may be of interest to extract the spline.
baseCor <- baseline(inx = inflexX, iny = inflexY, o = o_orig, dat = undetrended, sp = splinePoly, plot=F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.