osnd_fit: osnd_fit

View source: R/PulseWaveform.R

osnd_fitR Documentation

osnd_fit

Description

osnd_fit identifies OSND points on both original waveforms and model-generated waveforms, such that the HED model's ability to recapitulate important morphological features and fiducial points can be assessed.

Usage

osnd_fit(bf = beat_final, ppg, gs = model2.GetSegment, r = model2.Rebuild2, sf = splinefun, dp = diast_pk, oa = osnd_of_average, sr = samplingRate, plot = FALSE)

Arguments

bf

finalised model parameter outputs

ppg

ppg time series

gs

model2.GetSegment function

r

model2.Rebuild2 function

sf

splinefun function

dp

diast_pk function

oa

osnd_of_average function

sr

sampling rate

plot

logical, plots each waveform with modelled version superimposed, as well as OSND points for each

Value

osnd_diff

list of values representing the error between model-generated OSND values and actual OSND values

Examples

osnd_fits <- osnd_fit(beat_final, ppg, plot = F)










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