python KDE implemented https://github.com/rjmarsan/Weka-for-Android/blob/master/src/weka/estimators/.svn/text-base/UnivariateKernelEstimator.java.svn-base