Guards against underflow or overflow by adjusting the
log-probabilities so that the largest probability is 1.
References
P. Carbonetto and M. Stephens (2012). Scalable variational
inference for Bayesian variable selection in regression, and its
accuracy in genetic association studies. Bayesian Analysis7,
73--108.