混合ガウス分布の重みつき和の計算:tied-mixture用,キャッシュ有り [詳細]
#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"
関数 | |
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. | |
変数 | |
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. |
混合ガウス分布の重みつき和の計算:tied-mixture用,キャッシュ有り
Tied-mixture 用のガウス混合分布計算ではキャッシュが考慮されます. 計算された混合分布の音響尤度はコードブック単位でフレームごとに キャッシュされ,同じコードブックが同じ時間でアクセスされた場合は そのキャッシュから値を返します.
calc_tied_mix.c で定義されています。
boolean calc_tied_mix_init | ( | ) |
Initialize codebook cache area.
calc_tied_mix.c の 57 行で定義されています。
参照元 outprob_init().
boolean calc_tied_mix_prepare | ( | int | framenum | ) |
Setup codebook cache for the next incoming input.
framenum | [in] length of the next input. |
calc_tied_mix.c の 73 行で定義されています。
参照元 outprob_prepare().
void calc_tied_mix_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.
calc_tied_mix.c の 138 行で定義されています。
参照元 outprob_init().