'Compute final con. score for some connections.'

def compute_con(self, con_idx, n_epochs):

    if (self.con_scores is None):
        self.con_scores = np.zeros(self.csd_shape)
    con = (((self._acc[con_idx] * np.conj(self._acc[con_idx])) - n_epochs) / (n_epochs * (n_epochs - 1.0)))
    self.con_scores[con_idx] = np.real(con)
