function lambda = compute_lambda_bnode(bnode, bnet)

switch bnode.type
  case {'adder', 'mux', 'mux2', 'noisyor', 'tabular'} % all the discrete types
    lambda = compute_lambda_tabular(bnode, bnet);
  otherwise,
    error('bad type');
end

