def _log_likelihood_single_process(k2, T, dt,
                                   lambda0, Wk2, g,
                                   Sk, Fk, Ns):
    ll = 0
    # Compute the integrated rate
    # Each event induces a weighted impulse response
    ll += -lambda0[k2] * T * dt
    ll += -(Wk2 * Ns).sum()

    # Compute the instantaneous log rate
    Wk2 = Wk2[None,:,None] #(1,K,1)
    Gk2 = g[:,k2,:][None,:,:] # (1,K,B)
    lam = lambda0[k2] + (Wk2 * Gk2 * Fk).sum(axis=(1,2))

    ll += (Sk * np.log(lam)).sum()
    return ll
SelectConnection:DefaultPoller
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/internals/parallel_adjacency_resampling.py/_log_likelihood_single_process--crossover with--dataset/ETHPy150Open pika/pika/tests/acceptance/async_test_base.py/AsyncAdapters.select_default_test