Go to the source code of this file.
Macros | |
| #define | ILLEGALSAMPLESIZE 5000 |
| #define | ILLEGALCIRCULARSPEC 5001 |
| #define | ILLEGALMINMAXSPEC 5002 |
| #define | ILLEGALSIGNIFICANCESPEC 5003 |
| #define | ILLEGALSTYLESPEC 5004 |
| #define | ILLEGALSAMPLECOUNT 5005 |
| #define | ILLEGALMEANSPEC 5006 |
| #define | ILLEGALVARIANCESPEC 5007 |
| #define | ILLEGALDISTRIBUTION 5008 |
| #define | ILLEGALFLOAT 5009 |
| #define | ILLEGALESSENTIALSPEC 5013 |
Functions | |
| uinT16 | ReadSampleSize (FILE *File) |
| PARAM_DESC * | ReadParamDesc (FILE *File, uinT16 N) |
| PROTOTYPE * | ReadPrototype (FILE *File, uinT16 N) |
| PROTOSTYLE | ReadProtoStyle (FILE *File) |
| FLOAT32 * | ReadNFloats (FILE *File, uinT16 N, FLOAT32 Buffer[]) |
| void | WriteParamDesc (FILE *File, uinT16 N, PARAM_DESC ParamDesc[]) |
| void | WritePrototype (FILE *File, uinT16 N, PROTOTYPE *Proto) |
| void | WriteNFloats (FILE *File, uinT16 N, FLOAT32 Array[]) |
| void | WriteProtoStyle (FILE *File, PROTOSTYLE ProtoStyle) |
| void | WriteProtoList (FILE *File, uinT16 N, PARAM_DESC ParamDesc[], LIST ProtoList, BOOL8 WriteSigProtos, BOOL8 WriteInsigProtos) |
| #define ILLEGALCIRCULARSPEC 5001 |
Definition at line 58 of file clusttool.h.
| #define ILLEGALDISTRIBUTION 5008 |
Definition at line 65 of file clusttool.h.
| #define ILLEGALESSENTIALSPEC 5013 |
Definition at line 67 of file clusttool.h.
| #define ILLEGALFLOAT 5009 |
Definition at line 66 of file clusttool.h.
| #define ILLEGALMEANSPEC 5006 |
Definition at line 63 of file clusttool.h.
| #define ILLEGALMINMAXSPEC 5002 |
Definition at line 59 of file clusttool.h.
| #define ILLEGALSAMPLECOUNT 5005 |
Definition at line 62 of file clusttool.h.
| #define ILLEGALSAMPLESIZE 5000 |
Definition at line 57 of file clusttool.h.
| #define ILLEGALSIGNIFICANCESPEC 5003 |
Definition at line 60 of file clusttool.h.
| #define ILLEGALSTYLESPEC 5004 |
Definition at line 61 of file clusttool.h.
| #define ILLEGALVARIANCESPEC 5007 |
Definition at line 64 of file clusttool.h.
This routine reads N floats from the specified text file and places them into Buffer. If Buffer is NULL, a buffer is created and passed back to the caller. If EOF is encountered before any floats can be read, NULL is returned.
| File | open text file to read floats from |
| N | number of floats to read |
| Buffer | pointer to buffer to place floats into |
Definition at line 281 of file clusttool.cpp.
| PARAM_DESC* ReadParamDesc | ( | FILE * | File, |
| uinT16 | N | ||
| ) |
This routine reads textual descriptions of sets of parameters which describe the characteristics of feature dimensions.
Exceptions:
| File | open text file to read N parameter descriptions from |
| N | number of parameter descriptions to read |
Definition at line 66 of file clusttool.cpp.
| PROTOSTYLE ReadProtoStyle | ( | FILE * | File | ) |
This routine reads an single token from the specified text file and interprets it as a prototype specification.
| File | open text file to read prototype style from |
Definition at line 241 of file clusttool.cpp.
This routine reads a textual description of a prototype from the specified file.
Exceptions:
| File | open text file to read prototype from |
| N | number of dimensions used in prototype |
Definition at line 113 of file clusttool.cpp.
| uinT16 ReadSampleSize | ( | FILE * | File | ) |
This routine reads a single integer from the specified file and checks to ensure that it is between 0 and MAXSAMPLESIZE.
| File | open text file to read sample size from |
Definition at line 43 of file clusttool.cpp.
This routine writes a text representation of N floats from an array to a file. All of the floats are placed on one line.
| File | open text file to write N floats to |
| N | number of floats to write |
| Array | array of floats to write |
Definition at line 393 of file clusttool.cpp.
| void WriteParamDesc | ( | FILE * | File, |
| uinT16 | N, | ||
| PARAM_DESC | ParamDesc[] | ||
| ) |
This routine writes an array of dimension descriptors to the specified text file.
| File | open text file to write param descriptors to |
| N | number of param descriptors to write |
| ParamDesc | array of param descriptors to write |
Definition at line 314 of file clusttool.cpp.
| void WriteProtoList | ( | FILE * | File, |
| uinT16 | N, | ||
| PARAM_DESC | ParamDesc[], | ||
| LIST | ProtoList, | ||
| BOOL8 | WriteSigProtos, | ||
| BOOL8 | WriteInsigProtos | ||
| ) |
This routine writes a textual description of each prototype in the prototype list to the specified file. It also writes a file header which includes the number of dimensions in feature space and the descriptions for each dimension.
| File | open text file to write prototypes to |
| N | number of dimensions in feature space |
| ParamDesc | descriptions for each dimension |
| ProtoList | list of prototypes to be written |
| WriteSigProtos | TRUE to write out significant prototypes |
| WriteInsigProtos | TRUE to write out insignificants |
Definition at line 444 of file clusttool.cpp.
| void WriteProtoStyle | ( | FILE * | File, |
| PROTOSTYLE | ProtoStyle | ||
| ) |
This routine writes to the specified text file a word which represents the ProtoStyle. It does not append a carriage return to the end.
| File | open text file to write prototype style to |
| ProtoStyle | prototype style to write |
Definition at line 410 of file clusttool.cpp.
This routine writes a textual description of a prototype to the specified text file.
| File | open text file to write prototype to |
| N | number of dimensions in feature space |
| Proto | prototype to write out |
Definition at line 343 of file clusttool.cpp.