Skip to main content
. 2017 Aug 29;114(37):9814–9819. doi: 10.1073/pnas.1700770114

Algorithm 1.

RCC

I: input: Data samples {𝐱}i=1n.
II: output: Cluster assignment {c^i}i=1n.
III: Construct connectivity structure E.
IV: Precompute χ=𝐗2,wp,q,δ.
V: Initialize 𝐮i=𝐱i,lp,q=1,μmax𝐱p𝐱q22,λ=χ𝐀2.
VI: while |𝐂t𝐂t1|<ε or t < maxiterations do
VII: Update lp,q using Eq. 5 and 𝐀 using Eq. 8.
VIII: Update {𝐮i}i=1n using Eq. 7.
IX: Every four iterations, update λ=χ𝐀2, μ=max(μ2,δ2).
X: Construct graph G=(V,F) with fp,q=1 if 𝐮p𝐮q2<δ.
XI: Output clusters given by the connected components of G.