'Compute entropy of distribution'

def _entropy(self):

    res = _lazywhere((self._hpdf[1:(-1)] > 0.0), (self._hpdf[1:(-1)],), np.log, 0.0)
    return (- np.sum(((self._hpdf[1:(-1)] * res) * self._hbin_widths)))
