28 #define MAX_INT_CHAR_NORM (INT_CHAR_NORM_RANGE - 1) 49 memset(char_norm_array, 0,
sizeof(*char_norm_array) *
unicharset.
size());
70 uinT8* char_norm_array) {
72 if (i < PreTrainedTemplates->NumClasses) {
111 for (Fid = 0; Fid < Features->
NumFeatures; Fid++) {
120 IntFeatures[Fid].CP_misses = 0;
#define MAX_INT_CHAR_NORM
INT_FEATURE_STRUCT INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES]
void ClearCharNormArray(uinT8 *char_norm_array)
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
uinT8 Bucket8For(FLOAT32 param, FLOAT32 offset, int num_buckets)
FLOAT32 ComputeNormMatch(CLASS_ID ClassId, const FEATURE_STRUCT &feature, BOOL8 DebugMatch)
#define INT_CHAR_NORM_RANGE
void ComputeIntFeatures(FEATURE_SET Features, INT_FEATURE_ARRAY IntFeatures)
uinT8 CircBucketFor(FLOAT32 param, FLOAT32 offset, int num_buckets)
void ComputeIntCharNormArray(const FEATURE_STRUCT &norm_feature, uinT8 *char_norm_array)