Algorithm 3.
Precompute: xij ← wij yij for all 1 ≤ i, j ≤ q |
Precompute: wi· ← Σj wij for all 1 ≤ i ≤ q |
Initialize: Draw uniformly on [−1,1] for all 1 ≤ i ≤ q, 1 ≤ k ≤ p |
repeat |
Compute |
for all 1 ≤ i, j ≤ q |
znij ← xij/dnij for all 1 ≤ i ≠ j ≤ q |
zni· ← Σj znij for all 1 ≤ i ≤ q |
Compute Θ;n(W − Zn) |
for all 1 ≤ i ≤ p, 1 ≤ k ≤ q |
until convergence occurs |