comparison toolboxes/FullBNT-1.0.7/bnt/inference/online/@jtree_2TBN_inf_engine/backT_mpe.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function [b, mpe] = backT_mpe(engine, f, ev2, t)
2
3 bnet = bnet_from_engine(engine);
4 ss = bnet.nnodes_per_slice;
5
6 if t==1
7 % ev2 is just the evidence on slice 1
8 [mpe, b.clpot] = find_max_config(engine.jtree_engine1, f.clpot, f.seppot, ev2);
9 else
10 [mpe, b.clpot] = find_max_config(engine.jtree_engine, f.clpot, f.seppot, ev2);
11 mpe = mpe((1:ss)+ss); % extract values for slice 2
12 end
13 for c=1:length(b.clpot)
14 [b.clpot{c}, ll(c)] = normalize_pot(b.clpot{c});
15 end
16 b.t = t;