Skip to main content
. 2016 Sep 23;16(10):1575. doi: 10.3390/s16101575
Algorithm 1 (SOM):
  1. Initialization: set the initial time step to n=0 and choose small random values for the initial synaptic-weight vectors wj(0), j∈L.

  2. Sampling: set n←n+1 and sample the training input pattern xn, i.e., the feature vector from the n-th parking sensor.

  3. Similarity matching: find the winning neuron, whose index is j☆(n) at time step n by using the minimum-distance criterion:
    j☆(n)=argminj∥xn−wj(n)∥,j∈L (3)
    where with ∥a−b∥, we mean the Euclidean distance between vectors a and b.
  4. Update: adjust the synaptic-weight vectors of all neurons by using the update equation:
    wj(n+1)=wj(n)+η(n)hji(n)(xn−wj(n)), (4)
    with j∈L, where η(n) is the learning rate parameter at iteration n and hji(n) is the neighborhood function centered on j☆(n) at iteration n.
  5. Adjust neighborhood: adjust the neighborhood size (hji(n)), the learning rate (η(n)) and continue from Step 2 if n<niter; stop otherwise.