View source: R/PulseWaveform.R
FixOutput | R Documentation |
FixOutput applies constraints to the optimised model parameter outputs to ensure they remain within feasible limits, by applying the model2.FixParams3 function.
FixOutput(beats_in, beat, ppg, gs = model2.GetSegment, fp = model2.FixParams3, across = output[1], within = output[2], sys_time = sys_time)
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) |
fixed |
list of vectors, each vector corresponds to the 12 optimised and fixed parameters for one waveform in the batch |
fixed <- FixOutput(beats_in, beat = new_beat, ppg, gs = model2.GetSegment, fp = model2.FixParams3, across = output[[1]], within = output[[2]], sys_time = sys_time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.