annotate toolboxes/FullBNT-1.0.7/bnt/general/mk_mnet.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 mnet = mk_mnet(graph, node_sizes, cliques, potentials)
wolffd@0 2 % MK_MNET Make a Markov network (Markov Random Field)
wolffd@0 3 %
wolffd@0 4 % mnet = mk_mnet(adj_mat, node_sizes, cliques, potentials)
wolffd@0 5 %
wolffd@0 6 % cliques{i} is a list of the nodes in clq i
wolffd@0 7 % potentials{i} is a dpot object corresponding to the potential for clique i
wolffd@0 8 %
wolffd@0 9
wolffd@0 10 mnet.markov_net = 1;
wolffd@0 11 mnet.graph = graph;
wolffd@0 12 mnet.node_sizes = node_sizes;
wolffd@0 13 mnet.user_cliques = cliques;
wolffd@0 14 mnet.user_potentials = potentials;