scipy.stats.gaussian_kde.resample

gaussian_kde.resample(size=None)

Randomly sample a dataset from the estimated pdf.

Parameters :

size : int, optional

The number of samples to draw. If not provided, then the size is the same as the underlying dataset.

Returns :

dataset : (self.d, size)-array

sampled dataset

This Page