K-Means least-squares partitioning method
Updated July 27th, 2001
Pierre LegendreJuly 2001
Département de Sciences Biologiques
Université de Montréal
K-means is a least-squares partitioning method allowing users to divide a collection of objects into K groups. The theory is presented in all textbooks of numerical classification methods, including section 8.8 of Legendre and Legendre (1998). The program implements a simple alternating least-squares algorithm, the same one as used in the SAS FASTCLUS procedure. The algorithm iterates between two simple steps:
- Compute cluster centroids and use them as new cluster seeds.
- Assign each object to the nearest seed.
Program availability
-
Macintosh version
- Compiled versions of the program for any Macintosh computer (fat binary)
- Program documentation, in Adobe Acrobat format
-
32-bit DOS version
(The executable file is a Win32 "console" executable, not a DOS executable. Therefore it cannot run under plain DOS, nor in a DOS window under Windows 3.x, only in Windows 95/98 or Windows NT consoles)
- Compiled version of the program for Win32 compatible computers
- Program documentation, in Adobe Acrobat format
Legendre, P. & Legendre, L. 1998. Numerical Ecology, 2nd English edition. Elsevier Science BV, Amsterdam. xv + 853 pages.