| Algorithm 1: Coordinate Clustering based on K-Means |
| Input: Cluster number, k; sample set, X = {X1, X2, …, XN}; Output: Cluster center, C = {C1, C2, …, Ck}; |
| Randomly select k samples as the initial centroids {μ1, μ2, …, μk}; Repeat for j = 1, 2, …, N do Calculate the distance between sample Xj and each mean vector : ; Determined the cluster market of Xj according to the nearest mean vector: ; Classify the sample Xj into the corresponding cluster: ; end for for i=1, 2, …, N do Calculate new mean vector: ; if then Update the current mean vector to ; else Keep the current mean vector unchanged; end if end for Until the current mean vector is not updated |