Obtain expected value of a DiscreteFunction
The current implementation is very limited; it assumes that
both the DiscreteFunction object and the
DiscreteFunctions object has a single variable, and the
variable must be the same for both functions.
Obtain posterior expected value of a DiscreteFunction
This assumes that the probability values are unnormalized,
equal to p(x, e) where e is the evidence.