|
TPCCLIB
|
Linear interpolation of TACs. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcli.h"#include "tpctac.h"#include "tpctacmod.h"Go to the source code of this file.
Functions | |
| int | tacIntegrate (TAC *inp, TAC *out, TPCSTATUS *status) |
| Integrate TACs from one TAC structure into a new TAC structure. | |
| int | tacIntegrateFE (TAC *inp, TAC *out, TAC *out2, TPCSTATUS *status) |
| Integrate TACs from one TAC structure into a new TAC structure. Integrals are calculated at frame end times. | |
| int | tacInterpolate (TAC *inp, TAC *xinp, TAC *tac, TAC *itac, TAC *iitac, TPCSTATUS *status) |
| Interpolate and/or integrate TACs from one TAC structure into a new TAC structure, using sample times from another TAC structure which is not changed. | |
| int | tacInterpolateInto (TAC *inp, TAC *tac, TAC *itac, TAC *iitac, TPCSTATUS *status) |
| Add TACs from one TAC structure into another TAC structure, interpolating the input TACs and allocating space if necessary. | |
| double | tacAUC (TAC *tac, int ti, double t1, double t2, TPCSTATUS *status) |
| Calculates TAC AUC from t1 to t2. | |
Linear interpolation of TACs.
Definition in file litac.c.
Calculates TAC AUC from t1 to t2.
| tac | Pointer to TAC structure. |
| ti | Index [0..tacNr-1] of the TAC to calculate AUC from. |
| t1 | AUC start time. |
| t2 | AUC end time. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 486 of file litac.c.
Integrate TACs from one TAC structure into a new TAC structure.
PET frame lengths are taken into account, if available.
| inp | Pointer to source TAC structure. |
| out | Pointer to target TAC structure into which the integrated TAC(s) are written. Structure must be initiated; any previous contents are deleted. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 27 of file litac.c.
Integrate TACs from one TAC structure into a new TAC structure. Integrals are calculated at frame end times.
TAC must contain frame start and end times.
| inp | Pointer to source TAC structure. |
| out | Pointer to target TAC structure into which the integrated TAC(s) are written. Structure must be initiated; any previous contents are deleted. |
| out2 | Pointer to target TAC structure into which the 2nd integrals are written. Structure must be initiated; any previous contents are deleted. Enter NULL if not needed. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 75 of file litac.c.
| int tacInterpolate | ( | TAC * | inp, |
| TAC * | xinp, | ||
| TAC * | tac, | ||
| TAC * | itac, | ||
| TAC * | iitac, | ||
| TPCSTATUS * | status ) |
Interpolate and/or integrate TACs from one TAC structure into a new TAC structure, using sample times from another TAC structure which is not changed.
PET frame lengths of output TACs are taken into account in interpolation, if available. Input frame lengths are taken into account if the framing is same as with output TACs, otherwise frame middle times are used.
| inp | Pointer to source TAC structure; make sure that x (time) and y (concentration) units are the same as in output TAC structure, because input time range is verified to cover the output data range. Detailed verification of suitability of TAC for interpolation must be done elsewhere. |
| xinp | Pointer to TAC structure which contains the x values (sample times) for the interpolation and integration. Data in this TAC structure is not modified. |
| tac | Pointer to target TAC structure into which the interpolated input TAC(s) are added. Structure must be initiated; any previous contents are deleted. Enter NULL if not needed. |
| itac | Pointer to target TAC structure into which the integrated input TAC(s) are added. Structure must be initiated; any previous contents are deleted. Enter NULL if not needed. |
| iitac | Pointer to target TAC structure into which 2nd integrals of input TAC(s) are added. Structure must be initiated; any previous contents are deleted. Enter NULL if not needed. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 141 of file litac.c.
Add TACs from one TAC structure into another TAC structure, interpolating the input TACs and allocating space if necessary.
PET frame lengths of output TACs are taken into account in interpolation, if available. Input frame lengths are taken into account if the framing is same as with output TACs, otherwise frame middle times are used.
| inp | Pointer to source TAC struct; make sure that x (time) and y (concentration) units are the same as in output TAC struct, because input time range is verified to cover the output data range. Detailed verification of suitability of TAC for interpolation must be done elsewhere. |
| tac | Pointer to target TAC struct into which the input TAC(s) are added. Struct must contain at least one TAC, and the x or x1 and x2 values. |
| itac | Pointer to target TAC struct into which integrated input TAC(s) are added; enter NULL if not needed. |
| iitac | Pointer to target TAC struct into which 2nd integrals of input TAC(s) are added; enter NULL if not needed. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 330 of file litac.c.
Referenced by tacReadModelingData(), and tacReadModelingInput().