View source: R/PulseWaveform.R
model2.Excess.Inv2 | R Documentation |
model2.Excess.Inv2 adds the model's decay element to its excess element. It is used within model2.Rebuild2 as part of the construction of a modelled waveforms from inputted model parameters.
model2.Excess.Inv2(time,excess,offset,baselineStart,baselineEnd,timeBase,config.rate)
time |
x coordinates of a particular segment of the PPG time series |
excess |
segment corresponding to excess element of reconstructed waveform |
offset |
the y value of the data point immediately preceding the inputted segment of the ppg time series |
baselineStart |
the y-value towards which the first baseline decays |
baselineEnd |
the y-value towards which the second baseline decays |
timeBase |
the point in time (x value) when baseline 1 switches to baseline 2, defined as the D (2nd reflectance) peak timing |
config.rate |
decay rate parameter |
result |
a modelled waveform with combined excess and decay elements |
result <- model2.Excess.Inv2(xy[,1],result,offset,params[1],params[2], params[3]+1*params[6], config.rate = params[12])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.