Introduction to k-means clustering of spectra#