dcmri.conc_trap#

dcmri.conc_trap(J, t=None, dt=1.0)[source]#

Indicator tissue concentration inside a trap.

See section Trap for more detail.

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

  • 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.

Returns:

Concentration as a 1D array.

Return type:

numpy.ndarray

Example

>>> import dcmri as dc
>>> J = [1,2,3,3,2]
>>> dc.conc_trap(J, dt=2.0)
array([ 0.,  3.,  8., 14., 19.])