libsent/src/phmm/calc_tied_mix.c File Reference

Compute weighed sum of Gaussian mixture for tied-mixture model (cache enabled). More...

#include <sent/stddefs.h>
#include <sent/speech.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

boolean calc_tied_mix_init (HMMWork *wrk)
 Initialize codebook cache area.
boolean calc_tied_mix_prepare (HMMWork *wrk, int framenum)
 Setup codebook cache for the next incoming input.
static void calc_tied_mix_extend (HMMWork *wrk, int reqframe)
 Expand the cache to time axis if needed.
void calc_tied_mix_free (HMMWork *wrk)
 Free work area for tied-mixture calculation.
LOGPROB calc_tied_mix (HMMWork *wrk)
 Compute the output probability of current state OP_State on tied-mixture model.
LOGPROB calc_compound_mix (HMMWork *wrk)
 Compute the output probability of current state OP_State, regardless of tied-mixture model or state-level mixture PDF.


Detailed Description

Compute weighed sum of Gaussian mixture for tied-mixture model (cache enabled).

In tied-mixture computation, the computed output probability of each Gaussian component will be cache per codebook, for each input frame. If the same codebook of the same time is accessed later, the cached value will be returned.

Author:
Akinobu LEE
Date:
Thu Feb 17 14:22:44 2005
Revision
1.5

Definition in file calc_tied_mix.c.


Function Documentation

boolean calc_tied_mix_init ( HMMWork wrk  ) 

Initialize codebook cache area.

Parameters:
wrk [i/o] HMM computation work area
Returns:
TRUE on success, FALSE on failure.

Definition at line 51 of file calc_tied_mix.c.

Referenced by outprob_init().

boolean calc_tied_mix_prepare ( HMMWork wrk,
int  framenum 
)

Setup codebook cache for the next incoming input.

Parameters:
wrk [i/o] HMM computation work area
framenum [in] length of the next input.
Returns:
TRUE on success, FALSE on failure.

Definition at line 70 of file calc_tied_mix.c.

Referenced by outprob_prepare().

static void calc_tied_mix_extend ( HMMWork wrk,
int  reqframe 
) [static]

Expand the cache to time axis if needed.

Parameters:
wrk [i/o] HMM computation work area
reqframe [in] required frame length

Definition at line 91 of file calc_tied_mix.c.

Referenced by calc_compound_mix(), and calc_tied_mix().

void calc_tied_mix_free ( HMMWork wrk  ) 

Free work area for tied-mixture calculation.

Parameters:
wrk [i/o] HMM computation work area

Definition at line 137 of file calc_tied_mix.c.

Referenced by outprob_free().

LOGPROB calc_tied_mix ( HMMWork wrk  ) 

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.

Parameters:
wrk [i/o] HMM computation work area
Returns:
the computed output probability in log10.

Definition at line 162 of file calc_tied_mix.c.

Referenced by outprob_init().

LOGPROB calc_compound_mix ( HMMWork wrk  ) 

Compute the output probability of current state OP_State, regardless of tied-mixture model or state-level mixture PDF.

This function switches calculation function of calc_mix() and calc_tied_mix() based on the mixture PDF information. This will be used on a system which has tied-mixture codebook but some states still has their own mixture PDF.

The initialization functions should be the same as calc_tied_mix(), since calc_mix() has no specific initialization.

Parameters:
wrk [i/o] HMM computation work area
Returns:
the computed output probability in log10.

Definition at line 258 of file calc_tied_mix.c.

Referenced by outprob_init().


Generated on Thu Jul 23 12:14:20 2009 for Julius by  doxygen 1.5.1