function CPT = cond_dist_tabular(bnode, bnet)
% COND_TABULAR Compute Pr(self | observed parents) for a tabular node.
% CPT = cond_tabular(bnode, bnet)

%assert(subset(bnode.parents, bnet.observed_nodes));

parent_vals = bnet.values(bnode.parents);
np = length(bnode.parents);
index = mk_multi_index(np+1, 1:np, parent_vals);
CPT = bnode.CPT(index{:});
