about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/inference/static/@global_joint_inf_engine/marginal_nodes.m
blob: 223e65747ba95fc9a198a14db334e6964061f953 (plain)
1
2
3
4
5
6
7
8
function [m, pot] = marginal_nodes(engine, query)
% MARGINAL_NODES Compute the marginal on the specified set of nodes (global_joint)
% [m, pot] = marginal_nodes(engine, query)

pot = marginalize_pot(engine.jpot, query);
m = pot_to_marginal(pot);
%[m.T, lik] = normalize(m.T);
%loglik = log(lik);