|
TPCCLIB
|
Simulation reference tissue input 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 | simRTCM (double *t, double *cr, const int nr, const double R1, const double k2, const double k3, const double k4, double *ct, double *cta, double *ctb) |
| int | simSRTM (double *t, double *cr, const int nr, const double R1, const double k2, const double BP, double *ct) |
| int | simTRTM (double *t, double *cr, const int nr, const double R1, const double k2, const double k3, double *ct) |
Simulation reference tissue input compartmental models.
Definition in file simrtcm.c.
| int simRTCM | ( | double * | t, |
| double * | cr, | ||
| const int | nr, | ||
| const double | R1, | ||
| const double | k2, | ||
| const double | k3, | ||
| const double | k4, | ||
| double * | ct, | ||
| double * | cta, | ||
| double * | ctb ) |
Simulate tissue TAC using full reference tissue compartment model (original) and reference region TAC, at reference region TAC times.
Memory for ct must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cf and/or cb can be given; if compartmental TACs are not required, NULL pointer can be given instead.
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. |
| cr | Reference region activities. |
| nr | Number of values in TACs. |
| R1 | Ratio K1/K1'. |
| k2 | Rate constant of the model. |
| k3 | Rate constant of the model. |
| k4 | Rate constant of the model. |
| ct | Pointer for TAC array to be simulated; must be allocated. |
| cta | Pointer for 1st compartment TAC to be simulated, or NULL. |
| ctb | Pointer for 2nd compartment TAC to be simulated, or NULL. |
Definition at line 32 of file simrtcm.c.
| int simSRTM | ( | double * | t, |
| double * | cr, | ||
| const int | nr, | ||
| const double | R1, | ||
| const double | k2, | ||
| const double | BP, | ||
| double * | ct ) |
Simulate tissue TAC using simplified reference tissue input 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. |
| cr | Reference region activities. |
| nr | Number of values in TACs. |
| R1 | Ratio K1/K1'. |
| k2 | Rate constant of the model. |
| BP | Binding potential. |
| ct | Pointer for TAC array to be simulated; must be allocated. |
Definition at line 114 of file simrtcm.c.
| int simTRTM | ( | double * | t, |
| double * | cr, | ||
| const int | nr, | ||
| const double | R1, | ||
| const double | k2, | ||
| const double | k3, | ||
| double * | ct ) |
Simulate tissue TAC using reference tissue compartment model (transport limited in ref region) and reference region TAC, at reference region 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. |
| cr | Reference region activities. |
| nr | Number of values in TACs. |
| R1 | Ratio K1/K1'. |
| k2 | Rate constant of the model. |
| k3 | Rate constant of the model. |
| ct | Pointer for TAC array to be simulated; must be allocated. |
Definition at line 182 of file simrtcm.c.