#include "bitvec.h"
#include "cutil.h"
#include "unichar.h"
#include "unicity_table.h"
#include "params.h"
 
Go to the source code of this file.
◆ AddProtoToConfig
AddProtoToConfig
Set a single proto bit in the specified configuration. 
Definition at line 93 of file protos.h.
 
 
◆ ClassOfChar
      
        
          | #define ClassOfChar | 
          ( | 
            | 
          Char | ) | 
           | 
        
      
 
Value:        NO_CLASS)
CLASS_STRUCT TrainingData[]
 
ClassOfChar
Return the class of a particular ASCII character value. 
Definition at line 111 of file protos.h.
 
 
◆ FEATURE_SCALE
      
        
          | #define FEATURE_SCALE   100.0 | 
        
      
 
 
◆ NUMBER_OF_CLASSES
◆ PrintProto
      
        
          | #define PrintProto | 
          ( | 
            | 
          Proto | ) | 
           | 
        
      
 
Value:(
tprintf(
"X=%4.2f, Y=%4.2f, Length=%4.2f, Angle=%4.2f",    \
         Proto->X,                \
         Proto->Y,                \
         Proto->Length,                \
         Proto->Angle))                \
PrintProto
Print out the contents of a prototype. The 'Proto' argument is of type 'PROTO'. 
Definition at line 133 of file protos.h.
 
 
◆ PrintProtoLine
      
        
          | #define PrintProtoLine | 
          ( | 
            | 
          Proto | ) | 
           | 
        
      
 
Value:(
cprintf (
"A=%4.2f, B=%4.2f, C=%4.2f",   \
                        Proto->A,           \
                        Proto->B,           \
                        Proto->C))           \
void cprintf(const char *format,...)
 
PrintProtoLine
Print out the contents of a prototype. The 'Proto' argument is of type 'PROTO'. 
Definition at line 148 of file protos.h.
 
 
◆ ProtoIn
      
        
          | #define ProtoIn | 
          ( | 
            | 
          Class,  | 
        
        
           | 
           | 
            | 
          Pid  | 
        
        
           | 
          ) | 
           |    (& (Class)->Prototypes [Pid]) | 
        
      
 
ProtoIn
Choose the selected prototype in this class record. Return the pointer to it (type PROTO). 
Definition at line 123 of file protos.h.
 
 
◆ RemoveProtoFromConfig
RemoveProtoFromConfig
Clear a single proto bit in the specified configuration. 
Definition at line 102 of file protos.h.
 
 
◆ Y_OFFSET
◆ CLASS_TYPE
◆ CLASSES
◆ CONFIGS
◆ PROTO
◆ AddConfigToClass()
Definition at line 62 of file protos.cpp.
#define WordsInVectorOfSize(NumBits)
 
BIT_VECTOR NewBitVector(int NumBits)
 
#define zero_all_bits(array, length)
 
void * Erealloc(void *ptr, int size)
 
 
 
 
◆ AddProtoToClass()
Definition at line 98 of file protos.cpp.
  120       for (Bit = Class->
NumProtos; Bit < NewNumProtos; Bit++)
   126     tprintf(
"Ouch! number of protos = %d, vs max of %d!",
 
BIT_VECTOR ExpandBitVector(BIT_VECTOR Vector, int NewNumBits)
 
void * Erealloc(void *ptr, int size)
 
#define reset_bit(array, bit)
 
 
 
 
◆ ClassConfigLength()
Definition at line 141 of file protos.cpp.
  145   for (Pid = 0; Pid < Class->
NumProtos; Pid++) {
   148       TotalLength += (
ProtoIn (Class, Pid))->Length;
   151   return (TotalLength);
 
#define test_bit(array, bit)
 
#define ProtoIn(Class, Pid)
 
 
 
 
◆ ClassProtoLength()
Definition at line 162 of file protos.cpp.
  166   for (Pid = 0; Pid < Class->
NumProtos; Pid++) {
   167     TotalLength += (
ProtoIn (Class, Pid))->Length;
   169   return (TotalLength);
 
#define ProtoIn(Class, Pid)
 
 
 
 
◆ CopyProto()
◆ FillABC()
      
        
          | void FillABC  | 
          ( | 
          PROTO  | 
          Proto | ) | 
           | 
        
      
 
Definition at line 197 of file protos.cpp.
  198   FLOAT32 Slope, Intercept, Normalizer;
   200   Slope = tan (Proto->
Angle * 2.0 * 
PI);
   201   Intercept = Proto->
Y - Slope * Proto->
X;
   202   Normalizer = 1.0 / sqrt (Slope * Slope + 1.0);
   203   Proto->
A = Slope * Normalizer;
   204   Proto->
B = -Normalizer;
   205   Proto->
C = Intercept * Normalizer;
 
 
 
 
◆ FreeClass()
Definition at line 214 of file protos.cpp.
void FreeClassFields(CLASS_TYPE Class)
 
 
 
 
◆ FreeClassFields()
Definition at line 227 of file protos.cpp.
void FreeBitVector(BIT_VECTOR BitVector)
 
 
 
 
◆ InitPrototypes()
◆ NewClass()
◆ PrintProtos()
Definition at line 272 of file protos.cpp.
  275   for (Pid = 0; Pid < Class->
NumProtos; Pid++) {
 
#define PrintProtoLine(Proto)
 
void cprintf(const char *format,...)
 
#define PrintProto(Proto)
 
#define ProtoIn(Class, Pid)
 
 
 
 
◆ classify_training_file
      
        
          | char* classify_training_file = "MicroFeatures" | 
        
      
 
 
◆ TrainingData