function x = sample_input(bnode, bnet)
% SAMPLE_INPUT Return the observed value of an input node.
% x = sample_input(bnode, bnet)

assert(ismember(bnode.self, bnet.observed_nodes));
x = bnet.values(bnode.self);
