dcmri.conc_2cxm#

dcmri.conc_2cxm(J, T, E, t=None, dt=1.0) ndarray[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.

Raises:

ValueError – if no real solution exists because of unphysical parameter values (usually E<0).

Returns:

Concentration in each compartment, and at each time point, as a 2D array with dimensions (2,k), where 2 is the number of compartments and k is the number of time points in J.

Return type:

numpy.ndarray