classify/clusttool.h

Go to the documentation of this file.
00001 
00020 #ifndef   __CLUSTERTOOL__
00021 #define   __CLUSTERTOOL__
00022 
00023 //--------------------------Include Files---------------------------------------
00024 #include "host.h"
00025 #include "cluster.h"
00026 #include <stdio.h>
00027 
00028 /*-------------------------------------------------------------------------
00029         Public Funtion Prototype
00030 --------------------------------------------------------------------------*/
00031 UINT16 ReadSampleSize(FILE *File); 
00032 
00033 PARAM_DESC *ReadParamDesc(FILE *File, UINT16 N); 
00034 
00035 PROTOTYPE *ReadPrototype(FILE *File, UINT16 N); 
00036 
00037 PROTOSTYLE ReadProtoStyle(FILE *File); 
00038 
00039 FLOAT32 *ReadNFloats (FILE * File, UINT16 N, FLOAT32 Buffer[]);
00040 
00041 void WriteParamDesc (FILE * File, UINT16 N, PARAM_DESC ParamDesc[]);
00042 
00043 void WritePrototype(FILE *File, UINT16 N, PROTOTYPE *Proto); 
00044 
00045 void WriteNFloats (FILE * File, UINT16 N, FLOAT32 Array[]);
00046 
00047 void WriteProtoStyle(FILE *File, PROTOSTYLE ProtoStyle); 
00048 
00049 void WriteProtoList(
00050      FILE   *File,
00051      UINT16 N,
00052      PARAM_DESC   ParamDesc[],
00053      LIST   ProtoList,
00054      BOOL8  WriteSigProtos,
00055      BOOL8  WriteInsigProtos);
00056 
00057 FLOAT32 UniformRandomNumber(FLOAT32 MMin, FLOAT32 MMax); 
00058 
00059 //--------------Global Data Definitions and Declarations---------------------
00060 // define errors that can be trapped
00061 #define ILLEGALSAMPLESIZE 5000
00062 #define ILLEGALCIRCULARSPEC 5001
00063 #define ILLEGALMINMAXSPEC 5002
00064 #define ILLEGALSIGNIFICANCESPEC 5003
00065 #define ILLEGALSTYLESPEC  5004
00066 #define ILLEGALSAMPLECOUNT  5005
00067 #define ILLEGALMEANSPEC 5006
00068 #define ILLEGALVARIANCESPEC 5007
00069 #define ILLEGALDISTRIBUTION 5008
00070 #define ILLEGALFLOAT  5009
00071 #define ILLEGALESSENTIALSPEC  5013
00072 #endif

Generated on Wed Feb 28 19:49:09 2007 for Tesseract by  doxygen 1.5.1