View source: R/PulseWaveform.R
model2.Rebuild2 | R Documentation |
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.
model2.Rebuild2(xy,offset,params,invert=TRUE)
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 |
result |
dataframe of x and y values defining the model generated waveform |
PlotFits(beats_in, ppg, beat2, gs = model2.GetSegment, rb = model2.Rebuild2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.