|
TPCCLIB
|
Simulation of 1-tissue compartmental models. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpccm.h"Go to the source code of this file.
Functions | |
| int | simMBF (double *t, double *ci, const int nr, const double k1, const double k2, const double Vfit, double *ct) |
| int | simC1 (double *t, double *ca, const int nr, const double k1, const double k2, double *ct) |
| int | simC1_i (double *t, double *cai, const int nr, const double k1, const double k2, double *ct) |
| int | simC1_d (double *t, double *ca, const int nr, const double k1, const double k2, double *ct) |
Simulation of 1-tissue compartmental models.
Definition in file sim1cm.c.
| int simC1 | ( | double * | t, |
| double * | ca, | ||
| const int | nr, | ||
| const double | k1, | ||
| const double | k2, | ||
| double * | ct ) |
Simulate tissue TAC using 1 tissue compartmental model and plasma TAC, at plasma TAC times.
Memory for ct must be allocated in the calling program.
The units of rate constants must be related to the time unit; 1/min and min, or 1/sec and sec.
| t | Array of time values. |
| ca | Array of arterial activities. |
| nr | Number of values in TACs. |
| k1 | Rate constant of the model. |
| k2 | Rate constant of the model. |
| ct | Pointer for TAC array to be simulated; must be allocated. |
Definition at line 93 of file sim1cm.c.
Referenced by bfm1TCM(), and simDispersion().
| int simC1_d | ( | double * | t, |
| double * | ca, | ||
| const int | nr, | ||
| const double | k1, | ||
| const double | k2, | ||
| double * | ct ) |
Simulate tissue TAC using 1 tissue compartmental model and input TAC, at input TAC times.
This version is directly based on ODE, and does not use integral of input TAC.
The units of rate constants must be related to the time unit; 1/min and min, or 1/sec and sec.
| t | Array of time values. |
| ca | Array of arterial activities. |
| nr | Number of values in TACs. |
| k1 | Rate constant of the model. |
| k2 | Rate constant of the model. |
| ct | Pointer for TAC array to be simulated; must be allocated. |
Definition at line 229 of file sim1cm.c.
| int simC1_i | ( | double * | t, |
| double * | cai, | ||
| const int | nr, | ||
| const double | k1, | ||
| const double | k2, | ||
| double * | ct ) |
Simulate tissue TAC using 1 tissue compartmental model and plasma TAC, at plasma TAC times.
This version uses integral of arterial TAC as input function. Only advantage over simC1() is that the calculation of integral can be fully controlled and possibly more precise in some situations.
The units of rate constants must be related to the time unit; 1/min and min, or 1/sec and sec.
| t | Array of time values. |
| cai | Array of AUC 0-t of arterial activities. |
| nr | Number of values in TACs. |
| k1 | Rate constant of the model. |
| k2 | Rate constant of the model. |
| ct | Pointer for TAC array to be simulated; must be allocated. |
Definition at line 164 of file sim1cm.c.
| int simMBF | ( | double * | t, |
| double * | ci, | ||
| const int | nr, | ||
| const double | k1, | ||
| const double | k2, | ||
| const double | Vfit, | ||
| double * | ct ) |
Simulate myocardial tissue TAC using Iida's compartment model.
Memory for ct must be allocated in the calling program. The units of rate constants must be related to the time unit; 1/min and min, or 1/sec and sec.
| t | Array of time values. |
| ci | Input activities. |
| nr | Number of values in TACs. |
| k1 | Apparent k1. |
| k2 | Apparent k2. |
| Vfit | Vfit |
| ct | Pointer for TAC array to be simulated; must be allocated. |
Definition at line 28 of file sim1cm.c.