jax.scipy.stats.gaussian_kde.resample#
- gaussian_kde.resample(key, shape=())[source]#
Randomly sample a dataset from the estimated pdf
- Parameters:
key – a PRNG key used as the random key.
shape – optional, a tuple of nonnegative integers specifying the result batch shape; that is, the prefix of the result shape excluding the last axis.
- Returns:
The resampled dataset as an array with shape (d,) + shape.