view 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
line wrap: on
line source
function mnet = mk_mnet(graph, node_sizes, cliques, potentials)
% MK_MNET Make a Markov network (Markov Random Field)
%
% mnet = mk_mnet(adj_mat, node_sizes, cliques, potentials)
%
% cliques{i} is a list of the nodes in clq i
% potentials{i} is a dpot object corresponding to the potential for clique i
%

mnet.markov_net = 1;
mnet.graph = graph;
mnet.node_sizes = node_sizes;
mnet.user_cliques = cliques;
mnet.user_potentials = potentials;