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), jL.

  2. Sampling: set nn+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)=argminjxnwj(n),jL (3)
    where with ab, 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)(xnwj(n)), (4)
    with jL, 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.