def resample(self, size=None):
        if size is None:
            size = self.n

        norm = transpose(multivariate_normal(zeros((self.d,), float),
                         self.covariance, size=size))
        indices = randint(0, self.n, size=size)
        means = self.dataset[:, indices]

        return means + norm
Randomly sample a dataset from the estimated pdf.
dataset/ETHPy150Open scipy/scipy/scipy/stats/kde.py/gaussian_kde.resample