about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/inference/static/@belprop_fg_inf_engine/marginal_nodes.m
blob: 0c85aed6a6236a78d913046909e47cbdee5c01a4 (plain)
1
2
3
4
5
6
function marginal = marginal_nodes(engine, query)
% MARGINAL_NODES Compute the marginal on the specified query nodes (belprop)
% marginal = marginal_nodes(engine, query)

assert(length(query)==1);
marginal = pot_to_marginal(engine.marginal_nodes{query});