nnmt.lif._general._input_calc

nnmt.lif._general._input_calc(network, prefix, input_func)[source]

Helper function for input related calculations.

Checks the requirements for calculating input related quantities and calls the respective input function.

Parameters:
networknnmt.create.Network object

The network for which the calculation should be done.

prefixstr

The prefix used to store the results (e.g. ‘lif.delta.’).

input_funcfunction

The function that should be calculated (either _mean_input or _std_input).