Description Usage Arguments Value Author(s) See Also Examples
View source: R/hex_neighbour_dists.R
[!] Calculate distances between neighbour SOM cells
1 | hex_neighbour_dist(X, method = "euclidean", ...)
|
X |
object of class |
method |
the distance measure to be used. This must be one of
|
... |
Further parameters to be passed to |
Data frame with distances between neighbour cells. Data frame has
these variables:
Cell_ID1, Cell_ID2
ID codes of neigbour cells. IThese variables are
sorted so that condition Cell_ID1 > Cell_ID2
is always true.
Distance
distance between indicated neighbours.
Other variables are coordinates between neigbourhood boundaries: bedinning,
end and center points.
Vilmantas Gegzna
Other SOM.and.hexagon.related.functions.in..pkg.spHelper.: hex_neighbourhood_line_pos
,
hexagonPT_verticles
1 2 3 4 5 | library(kohonen)
data("Spectra2", package = "spHelper")
som_model <- som(Spectra2$spc, grid = somgrid(7,7,"hexagonal"))
hex_neighbour_dist(som_model) %>% head
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.