TPCCLIB
Loading...
Searching...
No Matches
tpcmodels.h
Go to the documentation of this file.
1
7#ifndef _TPCMODELS_H_
8#define _TPCMODELS_H_
9/*****************************************************************************/
10
11/*****************************************************************************/
12#include "tpcclibConfig.h"
13/*****************************************************************************/
14#include <stdio.h>
15#include <stdlib.h>
16#include <string.h>
17#include <math.h>
18/*****************************************************************************/
19#include "tpcextensions.h"
20/*****************************************************************************/
21
22/*****************************************************************************/
27typedef enum /*mathfuncs*/ {
28 MF_UNKNOWN=0,
29 MF_LEVEL=100,
30 MF_LINE=101,
31 MF_POL2, MF_POL3, MF_POL4, MF_POL5, MF_POL6, MF_POL7, MF_POL8, MF_POL9,
32 MF_RATF11=211, MF_RATF21=221, MF_RATF22=222, MF_RATF32=232, MF_RATF33=233,
33 MF_EXP1=301, MF_EXP2=302, MF_EXP3, MF_EXP4, MF_EXP5,
34 MF_LUNDQVIST=321, MF_LUNDQVIST2, MF_LUNDQVIST3,
35 MF_EXPBOLUSINF=331,
36 MF_EXPBOLUSINF_RW=332,
37 MF_EXPBOLUSINF_AZ=334,
38 MF_PK11195=351,
39 MF_HILL=841, MF_1MHILL=842, MF_1MHILL_ADE=843,
40 MF_HILL_B=844, MF_AMHILL=845,
41 MF_EHILL_PAR=846, MF_EHILL_MET=847,
42 MF_MAMEDE=851, MF_1MMAMEDE,
43 MF_MAYER_PAR=861, MF_MAYER_MET, MF_EMAYER_PAR, MF_EMAYER_MET,
44 MF_HILL3M_PAR=871, MF_HILL3M_M1, MF_HILL3M_M2, MF_HILL3M_M3,
45 MF_PF3M_PAR=881, MF_PF3M_M1, MF_PF3M_M2, MF_PF3M_M3,
46 MF_STEP=1010,
47 MF_RATF33D=1232,
48 MF_FENGM2S=1312, MF_FENGM2=1313, MF_FENGM2E=1314,
49 MF_GAMMAV=1401, MF_GAMMAVB=1402,
50 MF_WEIBULLCDF_D=1421, MF_WEIBULLCDF_DD=1423,
51 MF_SURGE=1431, MF_SURGE_TRAD=1432, MF_SURGE_RECIRC=1433, MF_P2B_SRC=1434, MF_SURGE_FDG=1435,
52 MF_HILL_D=1801, MF_HILL_DD=1811, MF_HILL_SDD=1821,
53 MF_IMGPROFILE=2111,
54 MF_P2B_RF=2233, MF_P2B_FM2=2313, MF_P2B_HILL=2841,
55 MF_GRAHAM_INP=9501, MF_GRAHAM_EINP, MF_GRAHAM_INPM,
56 MF_HUANG_MET=9601,
57 MF_CARSON_EMET,
58 MF_NEW_MET,
59 MF_MLMCM=9701,
60 MF_LAST
61} mf;
62/*****************************************************************************/
63
64/*****************************************************************************/
75/*****************************************************************************/
76
77/*****************************************************************************/
78/* aic */
79extern double aicSS(double ss, const unsigned int n, const unsigned int k);
80extern unsigned int parFreeNr(const unsigned int n, double *pLower, double *pUpper);
81/*****************************************************************************/
82/* modell */
83extern unsigned int modelNr();
84extern char *modelCode(const unsigned int i);
85extern unsigned int modelOldId(const unsigned int i);
86extern unsigned int modelOld2New(const unsigned int i);
87extern char *modelDesc(const unsigned int i);
88extern unsigned int modelCodeIndex(const char *s);
89extern unsigned int modelParNr(const unsigned int code);
90/*****************************************************************************/
91
92/*****************************************************************************/
93/* optcrit */
94extern unsigned int optcritNr();
95extern char *optcritCode(optimality_criterion id);
96extern char *optcritDesc(optimality_criterion id);
97extern optimality_criterion optcritId(const char *s);
98/*****************************************************************************/
99
100/*****************************************************************************/
101#endif /* TPCMODELS */
Header file for library libtpcextensions.
char * modelCode(const unsigned int i)
Definition modell.c:175
char * modelDesc(const unsigned int i)
Definition modell.c:221
optimality_criterion
Optimality Criterion for statistical optimizations.
Definition tpcmodels.h:66
@ OPTCRIT_OLS
Ordinary Least Squares (sum-of-squares, SS).
Definition tpcmodels.h:68
@ OPTCRIT_LAD
Least Absolute Deviations (sum of absolute deviations, LAE, LAV, LAR).
Definition tpcmodels.h:70
@ OPTCRIT_ODR
Orthogonal Distance Regression (sum of perpendicular distances).
Definition tpcmodels.h:72
@ OPTCRIT_LAST
List end.
Definition tpcmodels.h:73
@ OPTCRIT_MAD
Median Absolute Deviation.
Definition tpcmodels.h:71
@ OPTCRIT_UNKNOWN
Unknown optimality criterion.
Definition tpcmodels.h:67
@ OPTCRIT_LMS
Least Median of Squares.
Definition tpcmodels.h:69
char * optcritCode(optimality_criterion id)
Definition optcrit.c:60
double aicSS(double ss, const unsigned int n, const unsigned int k)
Calculate corrected AIC.
Definition aic.c:29
mf
Deprecated identification codes of mathematical functions fitted to PET data.
Definition tpcmodels.h:27
unsigned int modelParNr(const unsigned int code)
Definition modell.c:255
unsigned int modelOldId(const unsigned int i)
Definition modell.c:190
unsigned int modelOld2New(const unsigned int i)
Definition modell.c:204
unsigned int modelNr()
Definition modell.c:161
optimality_criterion optcritId(const char *s)
Definition optcrit.c:88
char * optcritDesc(optimality_criterion id)
Definition optcrit.c:74
unsigned int optcritNr()
Definition optcrit.c:47
unsigned int modelCodeIndex(const char *s)
Definition modell.c:236
unsigned int parFreeNr(const unsigned int n, double *pLower, double *pUpper)
Calculate the number of free parameters.
Definition aic.c:60