function dist = cond_dist_node(bnet, n)
% COND_DIST_NODE Return Pr(node n | observed parents)
% dist = cond_dist_node(bnet, n)
% 
% For discrete nodes, dist is a table.
% For Gaussian nodes, dist is a structure with fields mean and cov.

bnode = bnet.bnodes{bnet.equiv_class(n)};
bnode.parents = parents(bnet.adj_mat, n);
bnode.self = n;
dist = cond_dist_bnode(bnode, bnet);
 
