kMeansClusteringOnDist

K-means clustering on the distance matrix only

Contents

Syntax

Description

[centerIndex, U, objFun] = kMeansClusteringOnDist(distMat, clusterNum) performs Forgy's k-means clustering on a given distance matrix.

The clustering process stops when the max. number of iteration is reached, or when the objective function improvement between two consecutive iteration is less than the min. amount of improvement specified.

This function is different from kMeansClustering in that the given input is a distance matrix instead of a data matrix.

  • Example:

  • Top page   Next: kMeansClustering.m   Prev:knn.m