function [determined, val] = determine_value_deterministic(bnode, bnet)
% DETERMINE_VALUE_DETERMINISTIC Determine the value of a deterministic node, if possible
% [determined, val] = determine_value_deterministic(bnode, bnet)

ps = bnode.parents;
if all(bnet.obs_mask(ps))
  determined = 1;
  val = feval(bnode.fname, bnet.values(ps));
else
  determined = 0;
  val = [];
end
