A simple but fast implementation of a self-organizing map.
The class BaseSOM
implements a self-organizing map which can be trained either in batch or on-line mode.
It offers various functions that can be overridden to implement other geometries than euclidian.