Skip to main content
. Author manuscript; available in PMC: 2018 Jan 15.
Published in final edited form as: Neuroimage. 2016 Feb 23;145(Pt B):346–364. doi: 10.1016/j.neuroimage.2016.02.041

Algorithm 3 — Consensus Clustering

Input: {Sp[0,1]n×K}p=1P (P clusterings from Algorithm 1), K (number of clusters)
Output: S[0,1]n×K (Final Clustering Assignment)
• Compute co-occurrence matrix A using Eq. A.3
• Spectral clustering on A:
 • Compute Laplacian matrix L=diag(l=1nAi,l)A
 • Compute the K eigenvectors (v1, …, vK) that correspond to K smallest eigenvalues of L (λ1 ≤ … ≤ λK)
 • S ← K-means([v1vK])