hmmnorm.m

来自「Mathematical Methods by Moor n Stiling.」· M 代码 · 共 23 行

M
23
字号
function d = hmmnorm(branchweight,y,state,nextstate)
% 
% Compute the branch norm for the HMM using the Viterbi approach
%
% function d = hmmnorm(branchweight,y,state,nextstate)
%
% branchweight= log transition probability 
% y = output
% state = current state in trellis
% nextstate = next state in trellis
%
% d = branch norm (log-likelihood)

% Copyright 1999 by Todd K. Moon

global vHMM;
pout = hmmf(y,vHMM.f,state);
if(pout==0)
  lp = -realmax;
else
  lp = log(pout);
end
d = branchweight - lp;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?