dcmri.res_comp#
- dcmri.res_comp(T, t)[source]#
Residue function of a compartment.
See section Compartment for more detail.
- Parameters:
T (float) – mean transit time of the compartment. Any non-negative value is allowed, including \(T=0\) and \(T=\infty\), in which case the compartment is a trap.
t (array_like) – time points where the residue function is calculated, in the same units as T.
- Returns:
residue function of the compartment as a 1D array.
- Return type:
Example
>>> import dcmri as dc >>> t = [0,3,4,6] >>> dc.res_comp(5,t) array([1. , 0.54881164, 0.44932896, 0.30119421])