nnmt.lif.exp.fit_transfer_function

nnmt.lif.exp.fit_transfer_function(network)[source]

Fits the transfer function (tf) of a low-pass filter to the passed tf.

See nnmt.lif.exp._fit_transfer_function() for full documentation.

Parameters:
networknnmt.models.Network or child class instance.

Network with the network parameters, analysis parameters and results listed in nnmt.lif.exp._fit_transfer_function().

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.