27 #define MAX_INT_CHAR_NORM (INT_CHAR_NORM_RANGE - 1) 45 memset(char_norm_array, 0,
sizeof(*char_norm_array) *
unicharset.
size());
63 uint8_t* char_norm_array) {
65 if (i < PreTrainedTemplates->NumClasses) {
99 for (
int Fid = 0; Fid < Features->
NumFeatures; Fid++) {
108 IntFeatures[Fid].CP_misses = 0;
float ComputeNormMatch(CLASS_ID ClassId, const FEATURE_STRUCT &feature, bool DebugMatch)
void ComputeIntFeatures(FEATURE_SET Features, INT_FEATURE_ARRAY IntFeatures)
uint8_t CircBucketFor(float param, float offset, int num_buckets)
#define INT_CHAR_NORM_RANGE
void ClearCharNormArray(uint8_t *char_norm_array)
#define MAX_INT_CHAR_NORM
INT_FEATURE_STRUCT INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES]
uint8_t Bucket8For(float param, float offset, int num_buckets)
void ComputeIntCharNormArray(const FEATURE_STRUCT &norm_feature, uint8_t *char_norm_array)
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)