|
TPCCLIB
|
Factors for correcting or simulating physical decay. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcisotope.h"Go to the source code of this file.
Functions | |
| char * | decayDescr (decaycorrection d) |
| double | lambdaFromHalflife (double halflife) |
| double | lambdaFromIsotope (int isotope) |
| double | decayCorrectionFactorFromLambda (double lambda, double starttime, double duration) |
| double | decayCorrectionFactorFromIsotope (int isotope, double starttime, double duration) |
Factors for correcting or simulating physical decay.
Definition in file decay.c.
| double decayCorrectionFactorFromIsotope | ( | int | isotope, |
| double | starttime, | ||
| double | duration ) |
Calculate the correction factor for physical decay from measurement time to time zero.
| isotope | isotope_code as enum or the index of isotope in isotope table. |
| starttime | Radioactivity measurement start time, or middle time, if measurement duration is not known. Unit must be min. |
| duration | Radioactivity measurement duration; if not known, then set to zero, and put measurement middle time for starttime. Unit must be min. |
Definition at line 107 of file decay.c.
Referenced by noiseSD4Frame(), and sifWeight().
| double decayCorrectionFactorFromLambda | ( | double | lambda, |
| double | starttime, | ||
| double | duration ) |
Calculate the correction factor for physical decay from measurement time to time zero.
| lambda | Positive or negative lambda for the isotope. Note that time unit must be 1/timeunit of the starttime and duration. |
| starttime | Radioactivity measurement start time, or middle time, if measurement duration is not known. |
| duration | Radioactivity measurement duration; if not known, then set to zero, and put measurement middle time for starttime. |
Definition at line 79 of file decay.c.
Referenced by decayCorrectionFactorFromIsotope(), tacDecayCorrection(), and tacWByFreq().
| char * decayDescr | ( | decaycorrection | d | ) |
Return pointer to string describing the status of decay correction.
| d | Enum decaycorrection. |
Definition at line 32 of file decay.c.
Referenced by dcmImgIsotope(), and imgReadDICOM().
| double lambdaFromHalflife | ( | double | halflife | ) |
Calculate lambda based on specified halflife.
| halflife | Halflife of the isotope; if halflife is in minutes, then the unit of lambda will be 1/min, if seconds, then lambda will be in units 1/sec, etc. |
Definition at line 47 of file decay.c.
Referenced by tacDecayCorrection().
| double lambdaFromIsotope | ( | int | isotope | ) |
Calculate lambda for specified isotope.
| isotope | isotope_code as enum or the index of isotope in isotope table. |
Definition at line 63 of file decay.c.
Referenced by decayCorrectionFactorFromIsotope(), and tacWByFreq().