a grid for the representatives.The numbers of nodes should be approximately equal to 5*sqrt(n), which n denotes the number of sample.
min.radius
the minimum neighbourhood radius
max.radius
the maximum neighbourhood radius
maxit
the maximum number of iterations to be done
init
the method to be used to initialize the prototypes.The following
are permitted:
"random" uses random draws from N(0,1);
"sample" uses a radom sample from the data;
"linear" uses the linear grids upon the first two principle
components direction.See package som.
radius.type
the neighborhood function type. The following are permitted:
"gaussian""bubble""cutgauss""ep"
Value
classif
a vector of integer indicating to which unit each observation has been assigned
codes
a matrix of code vectors
grid
the grid, an object of class "somgrid"
References
Kohonen, T. (1995) Self-Organizing Maps. Springer-Verlag.
Brian Ripley, William Venables (2015), class: Functions for Classification,
URL https://cran.r-project.org/package=class.
Jun Yan (2010), som: Self-Organizing Map, URL https://cran.r-project.org/package=som.