def negentropy(self, E_ln_g=None):
        if E_ln_g is None:
            E_ln_g = self.expected_log_g()

        H =  gammaln(self.gamma.sum(axis=-1, keepdims=True)).sum()
        H += -gammaln(self.gamma).sum()
        H += ((self.gamma - 1) * E_ln_g).sum()
        return H
Snap one geometry to another with a given tolerance
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/internals/distributions.py/Dirichlet.negentropy--crossover with--dataset/ETHPy150Open Toblerity/Shapely/shapely/ops.py/snap