#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
#include <sent/htk_param.h>
#include <sent/hmm.h>
#include <sent/hmm_calc.h>
Go to the source code of this file.
Functions | |
LOGPROB | compute_g_base (HMMWork *wrk, HTK_HMM_Dens *binfo) |
Calculate probability of a Gaussian density against input vector on OP_vec. | |
boolean | gprune_none_init (HMMWork *wrk) |
Initialize and setup work area for Gaussian computation. | |
void | gprune_none_free (HMMWork *wrk) |
Free gprune_none related work area. | |
void | gprune_none (HMMWork *wrk, HTK_HMM_Dens **g, int num, int *last_id, int lnum) |
Compute a set of Gaussians with no pruning. |
gprune_none() is one of the functions to compute output probability of a set of Gaussian densities. This function does no pruning, just computing each Gaussian density one by one. For non tied-mixture model, this function is used as default. Specifying "-gprune none" at runtime can also select this function.
gprune_none() will be used by calling outprob_init() to set its pointer to the global variable compute_gaussset. Then it will be called from calc_tied_mix() or calc_mix().
Definition in file gprune_none.c.
LOGPROB compute_g_base | ( | HMMWork * | wrk, | |
HTK_HMM_Dens * | binfo | |||
) |
Calculate probability of a Gaussian density against input vector on OP_vec.
wrk | [i/o] HMM computation work area | |
binfo | [in] a Gaussian density |
Definition at line 59 of file gprune_none.c.
Referenced by compute_gs_scores(), gprune_none(), and gprune_safe().
Initialize and setup work area for Gaussian computation.
wrk | [i/o] HMM computation work area |
Definition at line 92 of file gprune_none.c.
Referenced by outprob_init().
void gprune_none_free | ( | HMMWork * | wrk | ) |
Free gprune_none related work area.
wrk | [i/o] HMM computation work area |
Definition at line 110 of file gprune_none.c.
Referenced by outprob_init().
void gprune_none | ( | HMMWork * | wrk, | |
HTK_HMM_Dens ** | g, | |||
int | num, | |||
int * | last_id, | |||
int | lnum | |||
) |
Compute a set of Gaussians with no pruning.
The calculated scores will be stored to OP_calced_score, with its corresponding mixture id to OP_calced_id. The number of calculated mixtures is also stored in OP_calced_num.
This can be called from calc_tied_mix() or calc_mix().
wrk | [i/o] HMM computation work area | |
g | [in] set of Gaussian densities to compute the output probability. | |
num | [in] length of above | |
last_id | [in] ID list of N-best mixture in previous input frame, or NULL if not exist | |
lnum | [in] length of last_id |
Definition at line 133 of file gprune_none.c.
Referenced by outprob_init().