#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.
Function Documentation
double NormEvidenceOf |
( |
register double |
NormAdj | ) |
|
Private Function Prototypes —————————————————————————-
Private Code —————————————————————————-
Definition at line 179 of file normmatch.cpp.
{
NormAdj = NormAdj * NormAdj * NormAdj;
NormAdj = NormAdj * NormAdj;
else
return (1.0 / (1.0 + NormAdj));
}
void PrintNormMatch |
( |
FILE * |
File, |
|
|
int |
NumParams, |
|
|
PROTOTYPE * |
Proto, |
|
|
FEATURE |
Feature |
|
) |
| |
Definition at line 193 of file normmatch.cpp.
{
int i;
for (i = 0, TotalMatch = 0.0; i < NumParams; i++) {
ParamMatch = (Feature->
Params[i] -
Mean(Proto, i)) /
fprintf (File, " %6.1f", ParamMatch);
TotalMatch += ParamMatch * ParamMatch;
}
fprintf (File, " --> %6.1f (%4.2f)\n",
}
Variable Documentation
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 |