#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include <ctype.h>#include "include/dft.h"#include "include/dftunit.h"Go to the source code of this file.
Functions | |
| void | dftUnitToDFT (DFT *dft, int dunit) |
| int | dftUnitConversion (DFT *dft, int dunit) |
| int | dftTimeunitToDFT (DFT *dft, const char *timeunit) |
| int | dftTimeunitConversion (DFT *dft, int tunit) |
| void | dftMin2sec (DFT *dft) |
| void | dftSec2min (DFT *dft) |
| void dftMin2sec | ( | DFT * | dft | ) |
Change time unit from min to sec, without checking original unit.
Definition at line 179 of file dftunit.c.
References DFT::frameNr, DFT::timeunit, DFT::x, DFT::x1, and DFT::x2.
Referenced by cptWrite(), and dftTimeunitConversion().
| void dftSec2min | ( | DFT * | dft | ) |
Change time unit from sec to min, without checking original unit.
Definition at line 194 of file dftunit.c.
References DFT::frameNr, DFT::timeunit, DFT::x, DFT::x1, and DFT::x2.
Referenced by cptReadOne(), and dftTimeunitConversion().
| int dftTimeunitConversion | ( | DFT * | dft, |
| int | tunit | ||
| ) |
Conversion of the DFT timeunit. Changes both data values and timeunit code. Currently available conversions are: min <-> sec
| dft | Pointer to existing DFT data, whose timeunit is to be changed |
| tunit | New timeunit code |
Definition at line 153 of file dftunit.c.
References dftMin2sec(), dftSec2min(), and DFT::timeunit.
| int dftTimeunitToDFT | ( | DFT * | dft, |
| const char * | timeunit | ||
| ) |
Set DFT timeunit; does not change the sample times.
Definition at line 137 of file dftunit.c.
References DFT::timeunit.
Referenced by tsvRead().
| int dftUnitConversion | ( | DFT * | dft, |
| int | dunit | ||
| ) |
Conversion of the DFT calibration unit. Changes both data values and unit string. Currently available conversions are: MBq/cc <-> kBq/cc <-> Bq/cc <-> nCi/cc <-> uCi/cc Bq <-> kBq <-> MBq <-> GBq <-> nCi <-> uCi <-> mCi
| dft | Pointer to existing DFT data, whose calibration unit is to be changed |
| dunit | New unit code |
Definition at line 62 of file dftunit.c.
References dftUnitToDFT(), DFT::frameNr, DFT::unit, DFT::voi, DFT::voiNr, Voi::y, Voi::y2, and Voi::y3.
| void dftUnitToDFT | ( | DFT * | dft, |
| int | dunit | ||
| ) |
Set DFT calibration unit string
Definition at line 48 of file dftunit.c.
References dftUnit, and DFT::unit.
Referenced by csv2dft_a(), csv2dft_b(), dftUnitConversion(), and tsvRead().
1.8.0