Skip to main content
. 2021 Jul 1;15:669534. doi: 10.3389/fnbot.2021.669534

Algorithm 4.

(Associative) SOINN+ Node linking

  1: for i in A do
  2:    max(WT) ← Maximum winning time of all nodes
  3:    T(i)WT(i)-1max(WT)-1    // Update trustworthiness of each node (Equation 5).
  4: end for
  5: τb¯, σb ← mean and standard deviation of the similarity thresholds of all BMUs with an edge to sBMU
  6: τs¯, σs ← mean and standard deviation of the similarity thresholds of all sBMUs with an edge to BMU
  7: condition1 τ(b)·(1-T(b))<τb¯+2·σb    // (Equation 6)
  8: condition2 τ(s)·(1-T(s))<τs¯+2·σs    // (Equation 7)
  9: if (|E| < 3) or condition1 or condition2 then
10:     if (b, s) ∉ E then
11:       EE∪{(b, s)}    // Create an edge between the BMU and the sBMU.
12:       Update τb¯, τs¯, σb, σs
13:     end if
14: end if
15: if (b, s) ∈ E then
16:     LT(b, s) ← 0    // Set the lifetime of the BMU, sBMU edge to zero.
17: end if
18: for all i in Nb do
19:     LT(b, i) ← LT(b, i) + 1    // Update the lifetime of all neighbors of the BMU.
20: end for