Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/bnt/inference/static/@cond_gauss_inf_engine/cond_gauss_inf_engine.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 engine = cond_gauss_inf_engine(bnet) | |
2 % COND_GAUSS_INF_ENGINE Conditional Gaussian inference engine | |
3 % engine = cond_gauss_inf_engine(bnet) | |
4 % | |
5 % Enumerates all the discrete roots, and runs jtree on the remaining Gaussian nodes. | |
6 | |
7 dnodes = mysetdiff(1:length(bnet.dag), bnet.cnodes); | |
8 | |
9 %onodes = dnodes; % all the discrete ndoes will be observed | |
10 %engine.sub_engine = jtree_inf_engine(bnet, onodes); | |
11 bnet2 = bnet; | |
12 bnet2.observed = dnodes; | |
13 engine.sub_engine = jtree_inf_engine(bnet2); | |
14 | |
15 % This is where we will store the results between enter_evidence and marginal_nodes | |
16 engine.T = []; | |
17 engine.mu = []; | |
18 engine.Sigma = []; | |
19 engine.joint_dmarginal = []; | |
20 engine.onodes = []; % needed for marginal_nodes | |
21 engine.evidence = []; % needed for marginal_nodes add_ev | |
22 | |
23 engine = class(engine, 'cond_gauss_inf_engine', inf_engine(bnet)); |