#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
#include <sent/htk_param.h>
#include <sent/hmm.h>
#include <sent/gprune.h>
#include "globalvars.h"
Include dependency graph for calc_tied_mix.c:
Go to the source code of this file.
Functions | |
boolean | calc_tied_mix_init () |
boolean | calc_tied_mix_prepare (int framenum) |
void | calc_tied_mix_free () |
LOGPROB | calc_tied_mix () |
Compute the output probability of current state OP_State on tied-mixture model. | |
Variables | |
static MIXCACHE *** | mixture_cache = NULL |
Codebook cache: [time][book_id][0..computed_mixture_num]. | |
static MIXCACHE ** | tcache |
Local work area that holds pointer to the cache array [bookid][0..computed_mixture_num] of the current time. | |
static MIXCACHE * | ttcache |
Local work area that holds pointer to the cache list [0..computed_mixture_num] of the current time and the current codebook. | |
static int * | last_id |
List of computed mixture id on the previous input frame. | |
static int | allocframenum |
Allocated frame length of codebook cache. | |
static MIXCACHE ** | last_tcache |
Pointer to the cache array of previous frame, to pass to compute_gaussset(). | |
static MIXCACHE * | last_ttcache |
Pointer to the cache list of current codebook on previous frame. |
Definition in file calc_tied_mix.c.
boolean calc_tied_mix_init | ( | ) |
Initialize codebook cache area.
Definition at line 57 of file calc_tied_mix.c.
Referenced by outprob_init().
boolean calc_tied_mix_prepare | ( | int | framenum | ) |
Setup codebook cache for the next incoming input.
framenum | [in] length of the next input. |
Definition at line 73 of file calc_tied_mix.c.
Referenced by outprob_prepare().
void calc_tied_mix_free | ( | ) |
Free work area for tied-mixture calculation.
Definition at line 113 of file calc_tied_mix.c.
Referenced by outprob_free().
LOGPROB calc_tied_mix | ( | ) |
Compute the output probability of current state OP_State on tied-mixture model.
This function assumes that the OP_state is assigned to a tied-mixture codebook. Here the output probability of Gaussian mixture component referred by OP_state is consulted to the book level cache, and if not computed yet on that input frame time, it will be computed here.
Definition at line 138 of file calc_tied_mix.c.
Referenced by outprob_init().