dcmri.conc#

dcmri.conc(J: ndarray, *params, t=None, dt=1.0, model='comp', **kwargs) ndarray[source]#

Concentration in an arbitrary pharmacokinetic system.

Parameters:
  • J (array_like) – the indicator flux entering the trap.

  • params (tuple) – model parameters.

  • t (array_like, optional) – the time points of the indicator flux J. If t=None, the time points are assumed to be uniformly spaced with spacing dt. Defaults to None.

  • dt (float, optional) – spacing between time points for uniformly spaced time points. This parameter is ignored if t is explicity provided. Defaults to 1.0.

  • model (str, optional) – Model to use, options are ‘trap’, ‘pass’, ‘comp’, ‘plug’, ‘chain’, ‘step’, ‘free’, ‘ncomp’, ‘nscomp’, ‘mmcomp’, ‘2cxm’. Defaults to ‘comp’.

This is a wrapper function offering a standard interface to calculate the concentration in a specific system.

Raises:

ValueError – If a system is specified that is not yet implemented.

Returns:

Concentration in the system.

Return type:

np.ndarray