⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hmmdiscfup.m

📁 Mathematical Methods by Moor n Stiling.
💻 M
字号:
function f = hmmdiscfup(y,alpha,beta,HMM)
% 
% Update the output probability distribution f of the HMM using the forward
% and backward probabilities alpha and beta
%
% function f = hmmdiscfup(y,alpha,beta,HMM)
%
% y = input sequence
% alpha = forward probabilities
% beta = backward probabilities
% HMM = current model parameters
%
% f = updated distribution

% Copyright 1999 by Todd K. Moon

[S,S] = size(HMM.A);      [N,S] = size(HMM.f{2});
f = HMM.f;
for s=1:S
  d = alpha(s,:) * beta(s,:)';
  for i = 1:N
    idx = find(y==i);
    f{2}(i,s) = sum(alpha(s,idx) .* beta(s,idx))/d;
  end
end

⌨️ 快捷键说明

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