wolffd@0: function CPD = mk_isolated_tabular_CPD(fam_sz, args) wolffd@0: % function CPD = mk_isolated_tabular_CPD(fam_sz, args) wolffd@0: % function CPD = mk_isolated_tabular_CPD(fam_sz, args) wolffd@0: % Make a single CPD by creating a mini-bnet containing just this one family. wolffd@0: % This is necessary because the CPD constructor requires a bnet. wolffd@0: wolffd@0: n = length(fam_sz); wolffd@0: dag = zeros(n,n); wolffd@0: ps = 1:(n-1); wolffd@0: if ~isempty(ps) wolffd@0: dag(ps,n) = 1; wolffd@0: end wolffd@0: bnet = mk_bnet(dag, fam_sz); wolffd@0: CPD = tabular_CPD(bnet, n, args{:});