#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 183 of file normmatch.cpp.
187 NormAdj = NormAdj * NormAdj * NormAdj;
189 NormAdj = NormAdj * NormAdj;
192 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 197 of file normmatch.cpp.
217 for (i = 0, TotalMatch = 0.0; i < NumParams; i++) {
218 ParamMatch = (Feature->
Params[i] -
Mean(Proto, i)) /
221 fprintf (File,
" %6.1f", ParamMatch);
224 TotalMatch += ParamMatch * ParamMatch;
226 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 |