Skip to main content
. 2023 Aug 17;23(16):7232. doi: 10.3390/s23167232
Algorithm 1 Inhibition Weight Update and Synaptic Wiring
  • Require: 

    Weight from inhibition neuron in relation to excitatory layer WSF, synaptic wiring threshold ϑinhibit, inhibition weight learning rate L1 and L2, maximum firing neuron Nm

  • 1:

    Set WSF = −50, ϑinhibit = −38, L1 = 0.5, L2 = 0.07

  • 2:

    // Inhibition weight update

  • 3:

    Nm = most active neuron among reacted excitatory neurons with Sn ≥ 4

  • 4:

    for ∀ reacted excitatory neurons based on the Nm and WSF<0 do

  • 5:

        if Sn>Sn−1 then

  • 6:

            WSF←WSF+L1(Sn−Sn−1)

  • 7:

        else

  • 8:

            WSF←WSF+L2(Sn−Sn−1)

  • 9:

        end if

  • 10:

        // Synaptic wiring

  • 11:

        if WSF<0 and WSF>ϑinhibit then

  • 12:

            WSF=+25

  • 13:

        end if

  • 14:

    end for