nnmt.lif.exp.external_rates_for_fixed_input

nnmt.lif.exp.external_rates_for_fixed_input(network, mu_set, sigma_set, method='shift')[source]

Calculate external rates needed to get fixed mean and std input.

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

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

Network with the network parameters and previously calculated results.

mu_set[float | np.array]

Mean neuron activity in V.

sigma_set[float | np.array]

Standard deviation of neuron activity in V.

methodstr

Method used to calculate the target rates. Options: ‘shift’, ‘taylor’. Default is ‘shift’.

Returns:
np.ndarray

External rates in Hz.