ClusteringComponents

WMA link


ClusteringComponents[list]

forms clusters from list and returns a list of cluster indices, in which each
element shows the index of the cluster in which the corresponding element in list
ended up.

ClusteringComponents[list, k]

forms k clusters from list and returns a list of cluster indices, in which
each element shows the index of the cluster in which the corresponding element in
list ended up.

For more detailed documentation regarding options and behavior, see FindClusters[].

FindClusters