scipy/scipy — pull request #4305 by tillahoffmann (2014-12-23 15:00:26+00:00)
Title: Changed kde computation to use scipy.spatial.distance.cdist.

Uses the `scipy.spatial.distance.cdist` function with the `mahalanobis` distance metric to compute the $\chi^2$ values instead of looping over the `dataset` or the `points` at which the PDF is to be evaluated. The changes yield a two-fold speed up and a smaller code base.