2
2
******************************************************************************
3
3
*
4
4
* File: protos.h
5
- * Description:
6
5
* Author: Mark Seaman, SW Productivity
7
- * Created: Fri Oct 16 14:37:00 1987
8
- * Modified: Fri Jul 12 10:06:55 1991 (Dan Johnson) danj@hpgrlj
9
- * Language: C
10
- * Package: N/A
11
- * Status: Reusable Software Component
12
6
*
13
7
* (c) Copyright 1987, Hewlett-Packard Company.
14
8
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -69,20 +63,6 @@ struct CLASS_STRUCT {
69
63
using CLASS_TYPE = CLASS_STRUCT * ;
70
64
using CLASSES = CLASS_STRUCT * ;
71
65
72
- /*----------------------------------------------------------------------
73
- C o n s t a n t s
74
- ----------------------------------------------------------------------*/
75
- #define NUMBER_OF_CLASSES MAX_NUM_CLASSES
76
- #define Y_OFFSET - 40.0
77
- #define FEATURE_SCALE 100.0
78
-
79
- /*----------------------------------------------------------------------
80
- V a r i a b l e s
81
- ----------------------------------------------------------------------*/
82
- extern CLASS_STRUCT TrainingData [];
83
-
84
- extern STRING_VAR_H (classify_training_file , "MicroFeatures ", "Training file ");
85
-
86
66
/*----------------------------------------------------------------------
87
67
M a c r o s
88
68
----------------------------------------------------------------------*/
@@ -94,23 +74,6 @@ extern STRING_VAR_H(classify_training_file, "MicroFeatures", "Training file");
94
74
95
75
#define AddProtoToConfig (Pid , Config ) (SET_BIT (Config , Pid ))
96
76
97
- /**
98
- * RemoveProtoFromConfig
99
- *
100
- * Clear a single proto bit in the specified configuration.
101
- */
102
-
103
- #define RemoveProtoFromConfig (Pid , Config ) (reset_bit (Config , Pid ))
104
-
105
- /**
106
- * ClassOfChar
107
- *
108
- * Return the class of a particular ASCII character value.
109
- */
110
-
111
- #define ClassOfChar (Char ) \
112
- ((TrainingData [Char ].NumProtos ) ? (& TrainingData [Char ]) : NO_CLASS )
113
-
114
77
/**
115
78
* ProtoIn
116
79
*
@@ -120,40 +83,13 @@ extern STRING_VAR_H(classify_training_file, "MicroFeatures", "Training file");
120
83
121
84
#define ProtoIn (Class , Pid ) (& (Class )-> Prototypes [Pid ])
122
85
123
- /**
124
- * PrintProto
125
- *
126
- * Print out the contents of a prototype. The 'Proto' argument is of
127
- * type 'PROTO'.
128
- */
129
-
130
- #define PrintProto (Proto ) \
131
- (tprintf ("X=%4.2f, Y=%4.2f, Length=%4.2f, Angle=%4.2f" , Proto -> X , Proto -> Y , \
132
- Proto -> Length , Proto -> Angle ))
133
-
134
- /**
135
- * PrintProtoLine
136
- *
137
- * Print out the contents of a prototype. The 'Proto' argument is of
138
- * type 'PROTO'.
139
- */
140
-
141
- #define PrintProtoLine (Proto ) \
142
- (cprintf("A=%4.2f, B=%4.2f, C=%4.2f", Proto->A, Proto->B, Proto->C))
143
-
144
86
/*----------------------------------------------------------------------
145
87
F u n c t i o n s
146
88
----------------------------------------------------------------------*/
147
89
int AddConfigToClass (CLASS_TYPE Class );
148
90
149
91
int AddProtoToClass (CLASS_TYPE Class );
150
92
151
- float ClassConfigLength (CLASS_TYPE Class , BIT_VECTOR Config );
152
-
153
- float ClassProtoLength (CLASS_TYPE Class );
154
-
155
- void CopyProto (PROTO Src , PROTO Dest );
156
-
157
93
void FillABC (PROTO Proto );
158
94
159
95
void FreeClass (CLASS_TYPE Class );
@@ -164,6 +100,4 @@ void InitPrototypes();
164
100
165
101
CLASS_TYPE NewClass (int NumProtos , int NumConfigs );
166
102
167
- void PrintProtos (CLASS_TYPE Class );
168
-
169
103
#endif
0 commit comments