dcmri.flux_2cxm#
- dcmri.flux_2cxm(J, T, E, t=None, dt=1.0)[source]#
Indicator flux out of a 2-compartment exchange model.
See section 2-compartment exchange for more detail.
- Parameters:
J (array_like) – the indicator flux entering the compartment (mmol/sec).
T (array-like) – 2-element array with mean transit times of plasma and extravascular compartment. Mean transit times can take any value, including 0 and inf. Negative values are unphysical but will only trigger an error if no solution exists.
E (float) – Extraction fraction out of the plasma compartment. E is a value between 0 and 1, and boundary values E=0 and E=1 are correctly handled. Values outside that range are unphysical but will only trigger an error if no solution exists.
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.ndarray