#include <stdio.h>#include <stdlib.h>#include <math.h>#include "include/integr.h"Functions | |
| int | interpolate (double *x, double *y, int nr, double *newx, double *newy, double *newyi, double *newyii, int newnr) |
| int | finterpolate (float *x, float *y, int nr, float *newx, float *newy, float *newyi, float *newyii, int newnr) |
| int | integrate (double *x, double *y, int nr, double *yi) |
| int | fintegrate (float *x, float *y, int nr, float *yi) |
| int | petintegrate (double *x1, double *x2, double *y, int nr, double *newyi, double *newyii) |
| int | fpetintegrate (float *x1, float *x2, float *y, int nr, float *newyi, float *newyii) |
| int | interpolate4pet (double *x, double *y, int nr, double *newx1, double *newx2, double *newy, double *newyi, double *newyii, int newnr) |
| int | finterpolate4pet (float *x, float *y, int nr, float *newx1, float *newx2, float *newy, float *newyi, float *newyii, int newnr) |
| int | petintegral (double *x1, double *x2, double *y, int nr, double *ie, double *iie) |
| int | fpetintegral (float *x1, float *x2, float *y, int nr, float *ie, float *iie) |
| int | petintegrate2fe (double *x1, double *x2, double *y, int nr, double *e, double *ie, double *iie) |
| int | fpetintegrate2fe (float *x1, float *x2, float *y, int nr, float *e, float *ie, float *iie) |
|
||||||||||||||||||||
|
float version of integrate()
|
|
||||||||||||||||||||||||||||||||||||
|
float version of interpolate()
|
|
||||||||||||||||||||||||||||||||||||||||
|
float version of interpolate4pet()
|
|
||||||||||||||||||||||||||||
|
float version of petintegral()
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||
|
float version of petinetgrate2fe()
|
|
||||||||||||||||||||
|
Linear integration from time 0 to x[0..nr-1]. If x[0] is >0, then the beginning is interpolated from it to (0,0).
|
|
||||||||||||||||||||||||||||||||||||
|
Linear interpolation and integration. It is assumed, that both original and new interpolated data represent the actual values at specified time points (not from framed data). The integration is calculated dot-by-dot. If NULL is spefied for newy[], newyi[] and/or newyii[], their values are not calculated. Original data and new x values must be sorted by ascending x. Subsequent x values can have equal values, enabling the use of step functions. Negative x (time) values can be processed. If necessary, the data is extrapolated assuming that: 1) y[inf]=y[nr-1] and 2) if x[0]>0 and y[0]>0, then an imaginary line is drawn from (0,0) to (x[0],y[0]).
|
|
||||||||||||||||||||||||||||||||||||||||
|
Interpolate and integrate TAC to PET frames. It is assumed, that original data is not from framed data, but that the values represent the actual value at specified time point, which allows the integration to be calculated dot-by-dot. If NULL is specified for *newy, *newyi and/or *newyii, their values are not calculated. Original data and new x values must be sorted by ascending x. Subsequent x values can have equal values, enabling the use of step functions. The newx2 must always be higher or equal than newx1. Frames must not overlap. Negative x (time) values can be processed. If necessary, the data is extrapolated assuming that 1) y[inf]=y[nr-1] and 2) if x[0]>0 and y[0]>0, then an imaginary line is drawn from (0,0) to (x[0],y[0]).
|
|
||||||||||||||||||||||||||||
|
Integrate PET TAC data to frame mid times. Any of output arrays may be set to NULL if that is not needed. Frames must be in ascending time order. Gaps and small overlap are allowed. If x1[0]>0, then an imaginary line is drawn from (0,0) to (x[0],y[0]).
|
|
||||||||||||||||||||||||||||
|
Calculates integrals of PET data at frame end times. Data does not have to be continuous, but it must be increasing in time. For faster performance in repetitive calls, allocate memory for integral[] even if it is not needed.
|
|
||||||||||||||||||||||||||||||||
|
Integrate PET TAC data to frame end times. Any of output arrays may be set to NULL if that is not needed. Frames must be in ascending time order. Gaps and small overlap are allowed. If x1[0]>0, then an imaginary line is drawn from (0,0) to (x[0],y[0]).
|
1.4.1