nnmt.lif.exp._power_spectra

nnmt.lif.exp._power_spectra(nu, effective_connectivity, J, K, N, tau_m)[source]

Calcs vector of power spectra for all populations at given frequencies.

See: Eq. 18 in Bos et al. [2016].

Parameters:
nunp.ndarray

Firing rates of the different populations in Hz.

effective_connectivitynp.ndarray

Effective connectivity matrix.

Jnp.ndarray

Weight matrix in V.

Knp.ndarray

Indegree matrix.

Nnp.ndarray

Number of neurons in each population.

tau_m[float | np.narray]

Membrane time constant of post-synatic neuron in s.

Returns:
np.ndarray

Power spectrum in Hz. Shape: (len(freqs), len(populations)).