function bnode = update_ess_tabular(bnode, family_marginal)
% UPDATE_ESS_TABULAR Update the Expected Sufficient Statistics of a tabular node.
% bnode = update_ess_tabular(bnode, marginal)

if ~bnode.adjustable, return; end

if length(bnode.parents)==0
  bnode.counts = bnode.counts(:) + family_marginal.T(:); % col vectors
else
  bnode.counts = bnode.counts + family_marginal.T;
end
bnode.num_samples = bnode.num_samples + 1;
