model2.Rebuild2: model2.Rebuild2

View source: R/PulseWaveform.R

model2.Rebuild2R Documentation

model2.Rebuild2

Description

model2.Rebuild2 takes HED model parameters and reconstructs a segment of the ppg time series corresponding to one waveform. First the excess is calculated from the 9 peak parameters, then the decay element is added to generate a final waveform.

Usage

model2.Rebuild2(xy,offset,params,invert=TRUE)

Arguments

xy

x and y values for a particular segment of the ppg time series

offset

the y value of the data point immediately preceding the inputted segment of the ppg time series

params

vector of 12 parameters for generating a modelled wave

invert

logical, if set to true adds decay element as well as excess element

Value

result

dataframe of x and y values defining the model generated waveform

Examples

PlotFits(beats_in, ppg, beat2, gs = model2.GetSegment, rb = model2.Rebuild2)










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