Algorithm 1.
1: | Initialize K, n |
2: | Input: Normalized data X, initial centroids and cell representatives {R1, R2…..RK + 1} |
3: | For iter = 1, 2, … , n |
4: | Cluster assignment: |
5: | |
6: | Centroid computation |
7: | |
8: | End For |
9: | Return: Labels L, Centroids |