calc_mix.c
来自「about sound recognition.i want to downlo」· C语言 代码 · 共 58 行
C
58 行
/** * @file calc_mix.c * @author Akinobu LEE * @date Thu Feb 17 14:18:52 2005 * * <JA> * @brief 寒圭ガウス尸邵の脚みつき下の纷换¨润 tied-mixture 脱·キャッシュ痰し * </JA> * * <EN> * @brief Compute weighed sum of Gaussian mixture for non tied-mixture model (no cache) * </EN> * * $Revision: 1.4 $ * *//* * Copyright (c) 1991-2006 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology * Copyright (c) 2005-2006 Julius project team, Nagoya Institute of Technology * All rights reserved */#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"/** * @brief Compute the output probability of current state OP_State. * * No codebook-level cache is done. * * @return the output probability of the state OP_State in log10 */LOGPROBcalc_mix(){ int i; LOGPROB logprob = LOG_ZERO; /* compute Gaussian set */ compute_gaussset(OP_state->b, OP_state->mix_num, NULL); /* computed Gaussians will be set in: score ... OP_calced_score[0..OP_calced_num] id ... OP_calced_id[0..OP_calced_num] */ /* sum */ for(i=0;i<OP_calced_num;i++) { OP_calced_score[i] += OP_state->bweight[OP_calced_id[i]]; } logprob = addlog_array(OP_calced_score, OP_calced_num); if (logprob <= LOG_ZERO) return LOG_ZERO; return (logprob * INV_LOG_TEN);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?