MapDataToCodes | R Documentation |
Assign nearest node to each datapoint
MapDataToCodes( codes, data, distf = 2, parallel = F, threads = if (parallel) 0 else 1 )
codes |
matrix with nodes of the SOM |
data |
datapoints to assign |
distf |
Distance function (1=manhattan, 2=euclidean, 3=chebyshev, 4=cosine) |
threads, parallel |
Use parallel computation (see |
array with nearest node id for each datapoint
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.