def kde_entropy_gaussian_1d(x, h, nb_bins=1000, fft=True):
    (grid, kde) = gaussian_kde_1d(x, h, nb_bins=nb_bins, fft=fft)
    delta = grid[1] - grid[0]
    plogp = - kde * np.log(kde + EPSILON)
    # Integrate
    entropy = trapz(plogp, dx=delta)
    return entropy
Uses Kernel Density Estimator with Gaussian kernel on one
dataset/ETHPy150Open omangin/multimodal/multimodal/lib/kde1d.py/kde_entropy_gaussian_1d