system_set_tt_bolus: Actual Function Called by 'SI_TT_BOLUS'

View source: R/ubiquity.r

system_set_tt_bolusR Documentation

Actual Function Called by SI_TT_BOLUS

Description

The prototype function SI_TT_BOLUS provides an interface to this function. Based on the input from SI_TT_BOLUS bolus inputs will be updated for the current titration time.

Usage

system_set_tt_bolus(
  cfg,
  state,
  values,
  times,
  tt_ts,
  tsinfo,
  repdose = "none",
  interval = 1,
  number = 0
)

Arguments

cfg

ubiquity system object

state

dosing state/compartment (Defined in <B:events>)

values

vector of dosing amounts (in dosing units defined by <B:events>)

times

vector of dosing times relative to the current titration time (in # time units defiend by <B:times>)

tt_ts

list of timescale values for the current titration time

tsinfo

list with timescale information for inputs (bolus, rates, etc)

repdose

"none", "last", "all"

interval

interval to repeat in the units defined in <B:times>

number

number of times to repeat

Value

ubiquity system object with the bolus dosing updated.


ubiquity documentation built on May 29, 2024, 12:02 p.m.