Tcms As Convolutions#
This module contains a collection of functions to compute Time-Activity Curves (TACs) for common Tissue Compartment Models (TCMs). These models are commonly used for kinetic analysis of PET TACs.
Note
All response functions in this module are decorated with numba.jit(). It compiles the function to
machine code at runtime (Just-In-Time compilation), which usually provides a significant speed-up.
Todo
Add the derivations of the solutions to the Tissue Compartment Models in the module docstring.
Functions#
|
Performs a discrete convolution of two arrays, assumed to represent time-series data. Checks if the arrays are |
|
Computes the convolution of the given function with an exponential kernel. |
|
The response function for the 1TCM \(f(t)=k_1 e^{-k_{2}t}\) |
|
The response function for first compartment in the serial 2TCM with |
|
The response function for second compartment in the serial 2TCM with \(k_{4}=0\); |
|
The response function for first compartment in the serial 2TCM. |
|
The response function for second compartment in the serial 2TCM. |
|
Calculate the TTAC, given the input TAC, for a 1TCM as an explicit convolution. |
|
Calculate the TTAC of the first comparment, given the input TAC, for a 2TCM (with \(k_{4}=0\)) as an explicit |
|
Calculate the TTAC of the second comparment, given the input TAC, for a 2TCM (with \(k_{4}=0\)) as an |
Calculate the PET-TTAC (sum of both compartments), given the input TAC, for a 2TCM (with \(k_{4}=0\)) as an |
|
|
Calculate the TTAC of the first compartment, given the input TAC, for a serial 2TCM as an explicit convolution. |
|
Calculate the TTAC of the second comparment, given the input TAC, for a serial 2TCM as an explicit convolution. |
|
Generates PET TAC values using the serial 2TCM. |
|
|
|