Set up a grid of units, of a specified size and topology.Wrapper of kohonen::somgrid
.
Usage
geosomgrid(
xdim,
ydim,
topo = "hexagonal",
neighbourhood.fct = "gaussian",
toroidal = FALSE
)
Arguments
- xdim
X dimensions of the grid
- ydim
Y dimensions of the grid.
- topo
(optional)Choose between a
hexagonal
orrectangular
topology,default ishexagonal
.- neighbourhood.fct
(optional)Choose between
bubble
andgaussian
neighbourhoods when training a GeoSOM."bubble" or "gaussian"(default).- toroidal
(optional)Logical, whether the grid is
toroidal
or not.Default isFALSE
.
Author
Wenbo Lv lyu.geosocial@gmail.com