| wccassign {wccsom} | R Documentation |
KNN assignment of patterns to units in a Kohonen map, with maximal WCC as the criterion.
wccassign(x, data)
x |
Trained Kohonen map |
data |
Data matrix |
Returns a list with components
classif |
Unit numbers to which rows in the data matrix are assigned |
wccs |
wcc value of rows in the data matrix and the units to which they are assigned. |
Ron Wehrens
data(cepha)
gr <- somgrid(3,3, "hexagonal")
set.seed(7)
x <- wccsom(cepha$patterns, grid=gr, trwidth=20, rlen=50,
FineTune=FALSE, keep.data=FALSE)
sombins <- wccassign(x, cepha$patterns)