Javascript implementation for the self organising map algorithm (Kohonen, 1985).