nnmt.lif._general._mean_input¶
-
nnmt.lif._general.
_mean_input
(nu, J, K, tau_m, J_ext, K_ext, nu_ext, I_ext=None, C=None)[source]¶ Calc mean input for lif neurons in fixed in-degree connectivity network.
Following Eq. 3.4 in Fourcaud and Brunel [2002].
Parameters: - nunp.array
Firing rates of populations in Hz.
- Jnp.array
Weight matrix in V.
- Knp.array
In-degree matrix.
- tau_m[float | 1d array]
Membrane time constant of post-synatic neuron in s.
- J_extnp.array
External weight matrix in V.
- K_extnp.array
Numbers of external input neurons to each population.
- nu_ext1d array
Firing rates of external populations in Hz.
- I_extfloat, optional
External d.c. input in A, requires membrane capacitance as well.
- Cfloat, optional
Membrane capacitance in F, required if external input is given.
Returns: - np.array
Array of mean inputs to each population in V.