model2.Excess.Inv2: model2.Excess.Inv2

View source: R/PulseWaveform.R

model2.Excess.Inv2R Documentation

model2.Excess.Inv2

Description

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.

Usage

model2.Excess.Inv2(time,excess,offset,baselineStart,baselineEnd,timeBase,config.rate)

Arguments

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

Value

result

a modelled waveform with combined excess and decay elements

Examples

result <- model2.Excess.Inv2(xy[,1],result,offset,params[1],params[2],
                                 params[3]+1*params[6],
                                 config.rate = params[12])










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