libsent/src/phmm/gprune_none.c File Reference

Calculate probability of a set of Gaussian densities (no pruning). More...

#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)
 Compute a set of Gaussians with no pruning.


Detailed Description

Calculate probability of a set of Gaussian densities (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().

Author:
Akinobu LEE
Date:
Thu Feb 17 05:09:46 2005
Revision
1.1.1.1

Definition in file gprune_none.c.


Function Documentation

LOGPROB compute_g_base ( HMMWork wrk,
HTK_HMM_Dens binfo 
)

Calculate probability of a Gaussian density against input vector on OP_vec.

Parameters:
wrk [i/o] HMM computation work area
binfo [in] a Gaussian density
Returns:
the output log probability.

Definition at line 59 of file gprune_none.c.

Referenced by gprune_beam(), gprune_heu(), gprune_none(), and gprune_safe().

boolean gprune_none_init ( HMMWork wrk  ) 

Initialize and setup work area for Gaussian computation.

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

Definition at line 86 of file gprune_none.c.

Referenced by outprob_init().

void gprune_none_free ( HMMWork wrk  ) 

Free gprune_none related work area.

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

Definition at line 104 of file gprune_none.c.

Referenced by outprob_init().

void gprune_none ( HMMWork wrk,
HTK_HMM_Dens **  g,
int  num,
int *  last_id 
)

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().

Parameters:
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

Definition at line 126 of file gprune_none.c.

Referenced by outprob_init().


Generated on Tue Dec 18 16:01:40 2007 for Julius by  doxygen 1.5.4