dcmri.flux_pfcomp#

dcmri.flux_pfcomp(J, T, D, t=None, dt=1.0, solver='interp')[source]#

Indicator flux out of a serial arrangement of a plug flow system and a compartment.

See section Plug-flow compartment for more detail.

Parameters:
  • J (array_like) – the indicator flux entering the compartment (mmol/sec).

  • T (float) – mean transit time of the compartment (sec). Any non-negative value is allowed, including \(T=0\) and \(T=\infty\), in which case the compartment is a trap.

  • D (float) – Dispersion of the systemd defined as the ratio of the compartmental mean transit time versus the total mean transit time.

  • t (array_like, optional) – the time points of the indicator flux J (sec). 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 (sec). This parameter is ignored if t is explicity provided. Defaults to 1.0.

  • solver (str, optional) – solver for the system, either ‘conv’ for explicit convolution with a discrete impulse response (slow) or ‘interp’ for interpolation (fast). Defaults to ‘interp’.

Returns:

Outflux in mmol/sec

Return type:

np.ndarrayx