#include <sent/stddefs.h>
#include <sent/hmm.h>
Go to the source code of this file.
Defines | |
#define | TBLSIZE 500000 |
Table size (precision depends on this). | |
#define | VRANGE 15 |
Must be larger than -LOG_ADDMIN. | |
#define | TMAG 33333.3333 |
TBLSIZE / VRANGE. | |
Functions | |
void | make_log_tbl () |
Generate a value tables of ![]() | |
LOGPROB | addlog (LOGPROB x, LOGPROB y) |
Rapid computation of ![]() | |
LOGPROB | addlog_array (LOGPROB *a, int n) |
Rapid computation of ![]() | |
Variables | |
static LOGPROB | tbl [TBLSIZE] |
Table of ![]() | |
static boolean | built_tbl = FALSE |
TRUE after tbl has built. |
Definition in file addlog.c.
void make_log_tbl | ( | ) |
Generate a value tables of .
is from 0 to (- VRANGE), and table size is TBLSIZE.
Definition at line 42 of file addlog.c.
Referenced by outprob_init().
Rapid computation of .
a | [in] array of log values | |
n | [in] length of above |
Definition at line 103 of file addlog.c.
Referenced by calc_mix(), calc_tied_mix(), and gmm_calc_mix().