preclean_wuv: preclean_wuv

View source: R/PulseWaveform.R

preclean_wuvR Documentation

preclean_wuv

Description

Preclean_wuv takes u, v and w values and assesses the x-axis (time) difference between them for each beat. For normal beats, time from u to w is around half (50 percent) of the time from u to v. Beats with abnormal / artefactual systolic upstrokes tend to have outlying values for this measure. Thus PreClean can identify and remove them.

Usage

preclean_wuv(w, uv, o, samp, sp, q = FALSE)

Arguments

w

vector of all x-axis coordinates corresponding to w points

uv

a dataframe containing x and y coordinates for all u and v values

o

vector of o points

samp

sample rate

sp

The original PPG time series, discrete form

q

Logical, will pause function and give the option of plotting rejected beats

Value

w

as above, with aberrant beats removed

uv

" "

o

" "

Examples

tmp <- preclean_wuv(w=w, uv=uv, o=o_orig, samp = samplingRate, sp = spline1, q = F)

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