MapDataToCodes: Assign nearest node to each datapoint

MapDataToCodesR Documentation

Assign nearest node to each datapoint

Description

Assign nearest node to each datapoint

Usage

MapDataToCodes(
  codes,
  data,
  distf = 2,
  parallel = F,
  threads = if (parallel) 0 else 1
)

Arguments

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 SOM())

Value

array with nearest node id for each datapoint


EmbedSOM documentation built on July 5, 2022, 5:14 p.m.