For two-sample testing, Shekhar and Ramdas use (more generally if are multivariate observations, and is some kernel.

todo