comparison toolboxes/FullBNT-1.0.7/bnt/CPDs/mk_isolated_tabular_CPD.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 CPD = mk_isolated_tabular_CPD(fam_sz, args)
2 % function CPD = mk_isolated_tabular_CPD(fam_sz, args)
3 % function CPD = mk_isolated_tabular_CPD(fam_sz, args)
4 % Make a single CPD by creating a mini-bnet containing just this one family.
5 % This is necessary because the CPD constructor requires a bnet.
6
7 n = length(fam_sz);
8 dag = zeros(n,n);
9 ps = 1:(n-1);
10 if ~isempty(ps)
11 dag(ps,n) = 1;
12 end
13 bnet = mk_bnet(dag, fam_sz);
14 CPD = tabular_CPD(bnet, n, args{:});