annotate toolboxes/FullBNT-1.0.7/bnt/inference/@inf_engine/Old/marginal_family_pot.m @ 0:e9a9cd732c1e
tip
first hg version after svn
author |
wolffd |
date |
Tue, 10 Feb 2015 15:05:51 +0000 |
parents |
|
children |
|
rev |
line source |
wolffd@0
|
1 function pot = marginal_family_pot(engine, i)
|
wolffd@0
|
2 % MARGINAL_FAMILY_POT Compute the marginal on i's family and return as a potentila (inf_engine)
|
wolffd@0
|
3 % function pot = marginal_family_pot(engine,i)
|
wolffd@0
|
4
|
wolffd@0
|
5 % This function is only called by solve_limid.
|
wolffd@0
|
6 % It requires that engine's marginal_family function return a potential.
|
wolffd@0
|
7 % This is true for jtree_inf_engine, but not for, say, jtree_ndx_inf_engine.
|
wolffd@0
|
8 % All limids must be solved using potentials,
|
wolffd@0
|
9 % but this is not true for bnets.
|
wolffd@0
|
10
|
wolffd@0
|
11 %[m, pot] = marginal_family(engine, i);
|
wolffd@0
|
12
|
wolffd@0
|
13 bnet = bnet_from_engine(engine);
|
wolffd@0
|
14 [m, pot] = marginal_nodes(engine, family(bnet.dag, i));
|