MapDataToCodes {EmbedSOM} | R Documentation |
Assign nearest node to each datapoint
MapDataToCodes(codes, data, distf = 2)
codes |
matrix with nodes of the SOM |
data |
datapoints to assign |
distf |
Distance function (1=manhattan, 2=euclidean, 3=chebyshev, 4=cosine) |
Array with nearest node id for each datapoint