Normalizes pi(fHat) to sum to 1.0. If exclude_diagonal is TRUE, the sum of the off-diagonal terms sums to 1.0.
Useful links