Compute exp(phi) so that exp(phi) sums to one.
This is useful for computing probabilities from log evidence.