FindClustersGivenCenters {ADPclust}R Documentation

Find cluster assignments given centers and distance matrix

Description

Find cluster assignments from given centers and distance matrix. Each point is assigned to the center that has the shortest Euclidean distance.

Usage

FindClustersGivenCenters(distm, centers)

Arguments

distm

distance matrix

centers

vector of integers that gives the indices of centers. Duplications will be silently dropped.

Value

Cluster assignments. A vector of the same length as the number of observations.


[Package ADPclust version 0.7 Index]