Mercurial > hg > camir-aes2014
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function mnet = mk_mnet(graph, node_sizes, cliques, potentials) | |
2 % MK_MNET Make a Markov network (Markov Random Field) | |
3 % | |
4 % mnet = mk_mnet(adj_mat, node_sizes, cliques, potentials) | |
5 % | |
6 % cliques{i} is a list of the nodes in clq i | |
7 % potentials{i} is a dpot object corresponding to the potential for clique i | |
8 % | |
9 | |
10 mnet.markov_net = 1; | |
11 mnet.graph = graph; | |
12 mnet.node_sizes = node_sizes; | |
13 mnet.user_cliques = cliques; | |
14 mnet.user_potentials = potentials; |