To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / _FullBNT / BNT / general / mk_mnet.m @ 8:b5b38998ef3b
History | View | Annotate | Download (455 Bytes)
| 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; |