MMD Python implementation of maximum mean discrepancy with the RBF kernel. See Eq.3 in https://www.jmlr.org/papers/volume13/gretton12a/gretton12a.pdf.