initializes the weight vectors of a self organizing map (SOM) with a regular grid.
[SOMWeights] = InitSOM(Samples, GridSize, GridType)
matrix that includes sample vectors as rows
vector or scalar, specifies the number of neurons per SOM dimension. All elements must be greater than one.
string, can be 'equidistant' or 'adjusted', is not case sensitive
matrix that includes weight vectors as rows
This function initializes the weight vectors of a self organizing map with a regular grid. This grid is centered at the mean vector of the samples and aligned according to the principal components. The grid can be equidistant [1] or adjusted to the density of samples in the axis directions [2].
[1] T. Kohonen, 'Self-organizing maps', Springer Verlag, Berlin, 2001
[2] Harald Galda, 'Development of a segmentation method for dermoscopic images based on color clustering', Kobe University, August 2003