baseline: baseline

View source: R/PulseWaveform.R

baselineR Documentation

baseline

Description

baseline generates a spline to fit the wandering baseline of the PPG time series and subtracts it from the time series.

Usage

baseline(inx, iny, o, dat, sp, plot = FALSE)

Arguments

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

Value

baseCor

time series with baseline wander removed

Note

Given baseline drift is indicative of vasomotion and respiratory modulation, it may be of interest to extract the spline.

Examples

baseCor <- baseline(inx = inflexX, iny = inflexY, o = o_orig,
                    dat = undetrended, sp = splinePoly, plot=F)

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