Skip to main content
. 2016 Dec 6;16(12):2069. doi: 10.3390/s16122069
Algorithm 1 Landmark-based Spectral Clustering
Input: Training samples X=x1,x2,...,xN, clustering number M
Output: M clusters, clusters centers CP1,CP2,...,CPM
1: Produce P landmark samples using random selection or k-means methods;
2: Construct a sparse affinity matrix Z between training data samples and landmarks, with the affinity matrix calculated based on Equation (1);
3: Calculate the first M eigenvectors of WWT, denoted by U=u1,u2,...,uM;
4: Calculate V=v1,v2,...,vM based on Equation (5);
5: Each row of V is a sample and k-means is adopted to achieve the clusters and cluster centers.