#include <stdio.h>#include <stdlib.h>#include <math.h>#include "include/integr.h"#include "include/dft.h"#include "include/simulate.h"Functions | |
| int | c3sSIM (double *t, double *ca, int nr, double k1, double k2, double k3, double k4, double k5, double k6, double *ct, double *cta, double *ctb, double *ctc) |
| int | c3pSIM (double *t, double *ca, int nr, double k1, double k2, double k3, double k4, double k5, double k6, double *ct, double *cta, double *ctb, double *ctc) |
| int | c3vsSIM (double *t, double *ca, double *cb, int nr, double k1, double k2, double k3, double k4, double k5, double k6, double f, double vb, double fa, double *cpet, double *cta, double *ctb, double *ctc, double *ctab, double *ctvb) |
| int | c3vpSIM (double *t, double *ca, double *cb, int nr, double k1, double k2, double k3, double k4, double k5, double k6, double f, double vb, double fa, double *cpet, double *cta, double *ctb, double *ctc, double *ctab, double *ctvb) |
| int | autointerpolateDFT (DFT *dft, DFT *dft2, double endtime) |
| int | c2lSIM (double *t, double *ca, int nr, double k1, double k2, double k3, double kLoss, double *ct, double *cta, double *ctb) |
| int | c2vlSIM (double *t, double *ca, double *cb, int nr, double k1, double k2, double k3, double kL, double f, double vb, double fa, double *cpet, double *cta, double *ctb, double *ctab, double *ctvb) |
| int | rtcmSIM (double *t, double *cr, int nr, double R1, double k2, double k3, double k4, double *ct, double *cta, double *ctb) |
| int | srtmSIM (double *t, double *cr, int nr, double R1, double k2, double BP, double *ct) |
| int | trtmSIM (double *t, double *cr, int nr, double R1, double k2, double k3, double *ct) |
| int | simHuangmet (double *t, double *ctot, int nr, double k01, double k12, double k21, double k03, double k34, double k43, double *c0, double *c1, double *c3) |
|
||||||||||||||||
|
Interpolates TACs to automatically determined sample times with smaller intervals in the beginning. Only data in y arrays are interpolated; data in y2 and y3 are not used.
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using 2 tissue compartment model (in series) and plasma TAC, at plasma TAC times. In contrary to the common model, kLoss represents a direct loss rate from the 2nd tissue compartment to venous plasma. Memory for ct must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta and ctb 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.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using 2 tissue compartment model and plasma TAC, at plasma TAC times, considering also arterial and venous vasculature. The efflux from 2nd tissue compartment (at rate kL) goes directly to blood. Memory for cpet must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta, ctb, ctab and/or ctvb 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. If blood flow is set to 0, function assumes that f>>k1, and Cvb=Cab.",
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using 1-3 tissue compartment model (2nd and 3rd compartments in parallel) and plasma TAC, at plasma TAC times. Memory for ct must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta, ctb and/or ctc 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.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using 1-3 tissue compartment model (in series) and plasma TAC, at plasma TAC times. Memory for ct must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta, ctb and/or ctc 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.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using 1-3 tissue compartment model (2nd and 3rd compartments in parallel) and plasma TAC, at plasma TAC times, considering also arterial and venous vasculature. Memory for cpet must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta, ctb, ctc, ctab and/or ctvb 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. If blood flow is set to 0, function assumes that f>>k1, and Cvb=Cab.",
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using 1-3 tissue compartment model (in series) and plasma TAC, at plasma TAC times, considering also arterial and venous vasculature. Memory for cpet must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta, ctb, ctc, ctab and/or ctvb 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. If blood flow is set to 0, function assumes that f>>k1, and Cvb=Cab.",
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using 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.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Simulation of TACs of parent tracer, and 1-2 of its metabolites in plasma using Huang's compartmental model. The units of model parameters must be related to the sample time unit; 1/min and min, or 1/sec and sec. Pointers to memory for output TACs must be specified, or NULL if TAC is not needed.
|
|
||||||||||||||||||||||||||||||||
|
Simulates tissue TAC using reference tissue compartment model (simplified) 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.
|
|
||||||||||||||||||||||||||||||||
|
Simulates 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.
|
1.4.1