nnmt.lif.exp._fit_transfer_function¶
-
nnmt.lif.exp.
_fit_transfer_function
(transfer_function, omegas, tau_m, J, K)[source]¶ Fits the transfer function (tf) of a low-pass filter to the passed tf.
For details of the fitting procedure see
nnmt.lif._general._fit_transfer_function()
.For details of the theory refer to Senk et al. [2020], Sec. F ‘Comparison of neural-field and spiking models’.
Parameters: - transfer_functionnp.array
Transfer functions for each population with the following shape: (number of freqencies, number of populations).
- omegas[float | np.ndarray]
Input frequencies to population in Hz.
- tau_mfloat
Membrane time constant of post-synatic neuron in s.
- Jnp.array
Weight matrix in V.
- Knp.array
Indegree matrix.
Returns: - transfer_function_fitnp.array
Fit of transfer functions in Hertz/volt for each population with the following shape: (number of freqencies, number of populations).
- tau_ratenp.array
Fitted time constant for each population in s.
- W_ratenp.array
Matrix of fitted weights (unitless).
- fit_errorfloat
Combined fit error.