#include "normmatch.h"
#include <stdio.h>
#include <math.h>
#include "classify.h"
#include "clusttool.h"
#include "const.h"
#include "efio.h"
#include "emalloc.h"
#include "globals.h"
#include "helpers.h"
#include "normfeat.h"
#include "scanutils.h"
#include "unicharset.h"
#include "params.h"
Go to the source code of this file.
| double NormEvidenceOf |
( |
register double |
NormAdj | ) |
|
Private Function Prototypes
Private Code
Definition at line 179 of file normmatch.cpp.
183 NormAdj = NormAdj * NormAdj * NormAdj;
185 NormAdj = NormAdj * NormAdj;
188 return (1.0 / (1.0 + NormAdj));
double classify_norm_adj_curl
double classify_norm_adj_midpoint
| void PrintNormMatch |
( |
FILE * |
File, |
|
|
int |
NumParams, |
|
|
PROTOTYPE * |
Proto, |
|
|
FEATURE |
Feature |
|
) |
| |
Definition at line 193 of file normmatch.cpp.
213 for (i = 0, TotalMatch = 0.0; i < NumParams; i++) {
214 ParamMatch = (Feature->
Params[i] -
Mean(Proto, i)) /
217 fprintf (File,
" %6.1f", ParamMatch);
220 TotalMatch += ParamMatch * ParamMatch;
222 fprintf (File,
" --> %6.1f (%4.2f)\n",
double NormEvidenceOf(register double NormAdj)
FLOAT32 StandardDeviation(PROTOTYPE *Proto, uinT16 Dimension)
FLOAT32 Mean(PROTOTYPE *Proto, uinT16 Dimension)
| double classify_norm_adj_curl = 2.0 |
| double classify_norm_adj_midpoint = 32.0 |
Variables
"Norm adjust midpoint ..."
Definition at line 63 of file normmatch.cpp.
| const double kWidthErrorWeighting = 0.125 |