dcmri.flux_tissue#

dcmri.flux_tissue(ca: ndarray, t=None, dt=1.0, kinetics='2CX', **params) ndarray[source]#

Indicator flux out of a 2-site exchange tissue.

Parameters:
  • ca (array-like) – concentration in the arterial input.

  • t (array_like, optional) – the time points of the input function ca. If t is not provided, the time points are assumed to be uniformly spaced with spacing dt. Defaults to None.

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

  • kinetics (str, optional) – The kinetic model of the tissue (see below for possible values). Defaults to ‘2CX’.

  • params (dict) – free model parameters and their values (see below for possible).

Returns:

outflux

For a one-compartmental tissue, outflux out of the compartment as a 1D array in units of mmol/sec/mL or M/sec. For a multi=compartmental tissue, outflux out of each compartment, and at each time point, as a 3D array with dimensions (2,2,k), where 2 is the number of compartments and k is the number of time points in J. Encoding of the first two indices is the same as for E: J[j,i,:] is the flux from compartment i to j, and J[i,i,:] is the flux from i directly to the outside. The flux is returned in units of mmol/sec/mL or M/sec.

Return type:

numpy.ndarray