5#include "tpcclibConfig.h"
21typedef struct TPC_OPTCRIT {
31static TPC_OPTCRIT tpc_optcrit[]={
50 while(tpc_optcrit[i].code[0]!=
'\0') i++;
64 for(
unsigned int i=0; i<
optcritNr(); i++)
if(
id==tpc_optcrit[i].
id)
return(tpc_optcrit[i].code);
78 for(
unsigned int i=0; i<
optcritNr(); i++)
if(
id==tpc_optcrit[i].
id)
return(tpc_optcrit[i].desc);
95 if(!strcasecmp(tpc_optcrit[i].code, s))
return(tpc_optcrit[i].
id);
char * optcritCode(optimality_criterion id)
optimality_criterion optcritId(const char *s)
char * optcritDesc(optimality_criterion id)
Header file for library libtpcextensions.
Header file for libtpcmodels.
optimality_criterion
Optimality Criterion for statistical optimizations.
@ OPTCRIT_OLS
Ordinary Least Squares (sum-of-squares, SS).
@ OPTCRIT_LAD
Least Absolute Deviations (sum of absolute deviations, LAE, LAV, LAR).
@ OPTCRIT_ODR
Orthogonal Distance Regression (sum of perpendicular distances).
@ OPTCRIT_MAD
Median Absolute Deviation.
@ OPTCRIT_UNKNOWN
Unknown optimality criterion.
@ OPTCRIT_LMS
Least Median of Squares.