This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| # class from here: http://nbviewer.ipython.org/gist/tillahoffmann/f844bce2ec264c1c8cb5 | |
| class gaussian_kde(object): | |
| """Representation of a kernel-density estimate using Gaussian kernels. | |
| Kernel density estimation is a way to estimate the probability density | |
| function (PDF) of a random variable in a non-parametric way. |