nnmt.lif.exp._pairwise_covariances¶
-
nnmt.lif.exp.
_pairwise_covariances
(J_eff, nu, cvs, return_noise_strength=False)[source]¶ Calculates the pairwise covariances in linear response theory.
We make use of Eq. 9 together with Eq. 11 from Layer et al. [2023].
Assumptions and approximations:
- Linear response approximation
- Spiketrains well described by renewal process
Parameters: - J_effnp.array
Pairwise effective connectivity matrix in V.
- nunp.array
Firing rates of populations in Hz.
- cvsnp.array
Coefficients of variation.
- return_noise_strength[False|True]
Whether the external noise strength matrix (Eq. 11) should be returned. Default is False.
Returns: - np.array
Pairwise effective covariance matrix by default. If return_noise_strength is True the covariance matrix is returned together with the effective noise strength matrix.