function x = sample_noisyfn(bnode, bnet)
% SAMPLE_NOISYFN Draw a random sample from Pr(self | observed parents) for a noisyfn node.
% x = sample_noisyfn(bnode, bnet)

CPT = cond_dist_noisyfn(bnode, bnet);
x = sample_discrete(CPT);
