Find cluster assignments given centers and distance matrix
Find cluster assignments from given centers and distance matrix. Each point is assigned to the center that has the shortest Euclidean distance.
vector of integers that gives the indices of centers. Duplications will be silently dropped.
Cluster assignments. A vector of the same length as the number of observations.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.