function table = mk_table_from_bnode(bnode)
% MK_TABLE_FROM_BNODE (Dispatch) Compute a table representing the conditional distrib. of a generic node.
% table = mk_table_from_bnode(bnode)

switch bnode.type
  case 'noisyor',
    table = mk_table_from_noisyor(bnode);
  case 'tabular',
    table = mk_table_from_tabular(bnode);
  otherwise,
    error(['bad type ' bnode.type]);
end

