Skip to main content
. 2022 Sep 6;22(18):6719. doi: 10.3390/s22186719
Algorithm 1: k-means for the Placement Scheme
Input: M, N, Number of cluster k
Output: O, Fpro
Randomly select k points as the starting center
Ck=
Do:
Set Ck by min:di,pk(xpk,ypk)
While Lpk changes
LpkLpk0
Find Oij by minimal dj,pk0(x,y)
Calculate Fpro