|
TPCCLIB
|
Linear interpolation for simulation. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcstatist.h"#include "tpctac.h"#include "tpcli.h"#include "tpctacmod.h"Go to the source code of this file.
Functions | |
| int | tacInput2sim (TAC *itac, TAC *ttac, TAC *stac, TPCSTATUS *status) |
| Modify input TAC based on tissue TAC, for use in simulations. | |
| int | tacVb (TAC *ttac, const int i, TAC *btac, double Vb, const int simVb, const int petVolume, TPCSTATUS *status) |
| Correct TTACs for vascular blood, or simulate its effect. | |
| int | tacInterpolateToEqualLengthFrames (TAC *inp, double minfdur, double maxfdur, TAC *tac, TPCSTATUS *status) |
Linear interpolation for simulation.
Definition in file lisim.c.
Modify input TAC based on tissue TAC, for use in simulations.
| itac | Pointer to original input TAC structure. Not modified. Data must not have missing values. |
| ttac | Pointer to tissue TAC structure. Not modified. Data must not have missing values. |
| stac | Pointer to the new input data, containing input data with new sample times. |
| status | Pointer to status data; obligatory. |
Definition at line 29 of file lisim.c.
Referenced by bfm1TCM().
| int tacInterpolateToEqualLengthFrames | ( | TAC * | inp, |
| double | minfdur, | ||
| double | maxfdur, | ||
| TAC * | tac, | ||
| TPCSTATUS * | status ) |
Interpolate TAC data into data with equal frame lengths, starting from zero.
By default, the shortest frame length or sampling interval in the input data is used.
| inp | Pointer to source TAC struct. Missing values are not allowed. |
| minfdur | Minimum frame length; if NaN or <=0 then not applied, otherwise frame lengths are not allowed to be lower. |
| maxfdur | Maximum frame length; if NaN or <=0 then not applied, otherwise frame lengths are not allowed to be higher. |
| tac | Pointer to target TAC struct into which the interpolated TACs are written. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 214 of file lisim.c.
| int tacVb | ( | TAC * | ttac, |
| const int | i, | ||
| TAC * | btac, | ||
| double | Vb, | ||
| const int | simVb, | ||
| const int | petVolume, | ||
| TPCSTATUS * | status ) |
Correct TTACs for vascular blood, or simulate its effect.
| ttac | Pointer to TAC data to process. |
| i | Index of TAC to be processed; enter <0 to process all. |
| btac | Pointer to BTAC data to subtract or add; must contain exactly same sample times as TTAC and y values must be in the same units. |
| Vb | Vb fraction [0,1]. |
| simVb | Switch to either subtract vascular volume (0) or to simulate it (1). |
| petVolume | Switch to model vascular volume as either 0 : Cpet = (1-Vb)*Ct + Vb*Cb, or 1 : Cpet = Ct + Vb*Cb |
| status | Pointer to status data; obligatory. |
Definition at line 138 of file lisim.c.