Clustering by mode-seeking
[LAB,J] = MODESEEK(D,K)
A K-NN modeseeking method is used to assign each object to its nearest mode.
Faster and more advanced tools for cluster analysis may be found in the ClusterTools toolbox.
1. Cheng, Y. "Mean shift, mode Seeking, and clustering", IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 17, no. 8, pp. 790-799, 1995.