function prob = prob_softmax(bnode, bnet)
% PROB_SOFTMAX Compute the probability of a softmax node.
% prob = prob_softmax(bnode, bnet)

assert(subset(bnode.self, bnet.observed_nodes));
self_val = bnet.values(bnode.self);
CPT = cond_dist_softmax(bnode, bnet);
prob = CPT(self_val);
