comparison toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/jtree_clq_test2.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
2 %bnet = mk_uffe_dbn;
3 bnet = mk_mildew_dbn;
4 ss = length(bnet.intra);
5
6 % construct jtree from 1.5 slice DBN
7
8 int = compute_fwd_interface(bnet.intra, bnet.inter);
9 bnet15 = mk_slice_and_half_dbn(bnet, int);
10
11 % use unconstrained elimination,
12 % but force there to be a clique containing both interfaces
13 clusters = {int, int+ss};
14 jtree_engine = jtree_inf_engine(bnet15, 'clusters', clusters, 'root', int+ss);
15 S=struct(jtree_engine)
16 in_clq = clq_containing_nodes(jtree_engine, int);
17 out_clq = clq_containing_nodes(jtree_engine, int+ss)
18
19
20 % Also make a jtree from slice 1
21 bnet1 = mk_bnet(bnet.intra1, bnet.node_sizes_slice);
22 jtree_engine1 = jtree_inf_engine(bnet1, 'clusters', {int}, 'root', int);
23 S1=struct(jtree_engine1)