Skip to main content
. 2022 Nov 17;24(11):1678. doi: 10.3390/e24111678
Algorithm 1 Cortical Coding Network Training (for one frame)
    Input
                 input wavelet coefficients vectors, {w1,w2,,wd}
    procedure Cortical Coding Network (Cortex) Training
          for each coefficient (wi) in the input data frame do
                if node has progeny cortex node then
                      closest_node ← FindClosestNode(node, coefficient)
                      if coefficient is in the range of the closest cortex node then
                            node ← UpdateClosestNode(closest_node, coefficient)
                            continue
                      end if
                end if
                if node has spines then
                      closest_spine ← FindClosestSpine(node, coefficient)
                      if coefficient is in the range of the closest spine node then
                            UpdateClosestSpine(closest_spine, coefficient)
                            if closest_spine’s maturity > threshold then
                                  node ← EvolveSpineToNode(closest_spine)
                                  continue
                            else
                                  break
                            end if
                      end if
                end if
                GenerateSpine(node, coefficient)
                break
          end for
    end procedure