Output function. Denote the weight of the connection between node i and node j by wij, and let the current activation of node j be aj. Then the total net input of node j is:

netj = Σi wij ai + extinputj
and then the output of node j is aj + Δaj, where:
if (netj > 0)
   Δaj = (maxaj)netjdecay(ajrest)
   Δaj = (ajmin)netjdecay(ajrest)
where, max, min, decay, and rest are parameters, signifying maximum and minimum activation, decay rate in the absence of input, and the resting value to which activation will decay in the absence of input.