69 #define PROGRESS_RATE 100
72 #define SWAP(d_a, d_b) temp=(d_a);(d_a)=(d_b);(d_b)=temp;
85 struct userWeightFunct {
91 userWeightFunct *next;
96 struct ClassStateStruct {
106 const double EPSILON = 0.01;
107 const double MU = 0.05;
108 const double TC_DIST_FACTOR = 0.5;
110 const double SQ_TC_DFACTOR = 0.0625;
111 const int LIMIT = 100;
114 const int GAUSS_NUM_ELS = 16;
115 const double GAUSS_LIMIT = 2.9;
116 const double GAUSS_INCREMENT = GAUSS_LIMIT*GAUSS_LIMIT/GAUSS_NUM_ELS;
120 const double DELTA = 0.00001;
185 void DefineKernel(kernelType*,
float*,
int*,
int);
255 void AddWeightFunction(
double g(
double),
float,
int,
int);
276 void ClearWeightFunctions(
void );
322 void DefineInput(
float*,
int,
int);
363 void DefineLInput(
float*,
int,
int,
int);
414 void SetLatticeWeightMap(
float*);
441 void RemoveLatticeWeightMap(
void);
483 void msVector(
double*,
double*);
528 void latticeMSVector(
double*,
double*);
566 void FindMode(
double*,
double*);
611 void FindLMode(
double*,
double*);
648 ErrorLevel ErrorStatus;
664 void MSVector (
double*,
double*);
675 void LatticeMSVector (
double*,
double*);
682 void OptLatticeMSVector (
double*,
double*);
695 void classConsistencyCheck(
int,
bool);
708 void ErrorHandler(
const char*,
const char*,
const char*);
759 unsigned char *modeTable;
782 bool weightMapDefined;
789 ClassStateStruct class_state;
802 void generateLookupTable (
void );
804 void DestroyKernel (
void );
811 void CreateBST (
void );
813 void InitializeInput (
float*);
815 void ResetInput (
void );
823 tree *BuildKDTree (tree*,
int,
int, tree* );
826 void QuickMedian (tree*,
int,
int,
int );
838 void uniformSearch (tree*,
int,
double*,
double*);
843 void generalSearch (tree*,
int,
double*,
double*);
852 void uniformLSearch (
double *,
double *);
856 void optUniformLSearch(
double *,
double *);
861 void generalLSearch (
double *,
double *);
865 void optGeneralLSearch(
double *,
double *);
887 userWeightFunct *head, *cur;
918 int LowerBoundX, UpperBoundX;
921 int LowerBoundY, UpperBoundY;