This is code associated with the paper: Broderick, T., Kulis, B. and Jordan, M. I. "MAD-bayes: MAP-based asymptotic derivations from Bayes." International Conference on Machine Learning. 2013. http://jmlr.org/proceedings/papers/v28/broderick13.html