view toolboxes/FullBNT-1.0.7/bnt/inference/online/@hmm_2TBN_inf_engine/fwd1.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
line wrap: on
line source
function [f, logscale] = fwd1(engine, ev, t)
% Forwards pass for slice 1.

if t ~= 1
  error('mixed up time stamps')
end
prior = engine.startprob(:);
f.obslik = mk_hmm_obs_lik_vec(engine, ev);
[f.alpha, lik] = normalise(prior .* f.obslik);
logscale = log(lik);
f.t = t;