FixOutput: FixOutput

View source: R/PulseWaveform.R

FixOutputR Documentation

FixOutput

Description

FixOutput applies constraints to the optimised model parameter outputs to ensure they remain within feasible limits, by applying the model2.FixParams3 function.

Usage

FixOutput(beats_in, beat, ppg, gs = model2.GetSegment, fp = model2.FixParams3, across = output[1], within = output[2], sys_time = sys_time)

Arguments

beats_in

number of beats in an inputted batch

beat

dataframe of model output parameters (not yet updated with optimised parameters)

ppg

ppg time series (unsegmented)

gs

model2.GetSegment function

fp

model2.FixParams3 function

across

optimised fixed parameters across the batch

within

optimised non-fixed parameters for each waveform in the batch

sys_time

the starting parameter for systolic peak timing (inputted to prevent drastic deviations from this value)

Value

fixed

list of vectors, each vector corresponds to the 12 optimised and fixed parameters for one waveform in the batch

Examples

 fixed <- FixOutput(beats_in, beat = new_beat, ppg, gs = model2.GetSegment,
                                 fp = model2.FixParams3, across = output[[1]], within = output[[2]],
                                 sys_time = sys_time)










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