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

Algorithm 6.

(Associative) SOINN+ Node deletion

  1: for i in A do
  2:     U(i)IT(i)WT(i)    // Update unutilities of all nodes (Equation 10).
  3: end for
  4: U Set of unutilities of all nodes with edges
  5: I Set of unconnected nodes
  6: ωnodemedian(U)+2·sMAD(U)    // (Equation 11)
  7: Rnoise|I||A|
  8: λnodeU¯del·|Udel||Udel|+|A\I|+ωnode·(1-|Udel||Udel|+|A\I|)·(1-Rnoise)    // (Equation 12)
  9: for i in A do
10:     if |E| > 1 and U(i) > λnode and i has no edges then
11:          AA\{i}    // Delete the node.
12:           (A-SOINN+): Update |Udel|, Udelsum, and U¯del
13:     end if
14: end for
15: for i in A do
16:     IT(i) ← IT(i) + 1    // Increment the idle time of each node.
17: end for