Skip to main content
. 2015 Oct 30;15(11):27760–27782. doi: 10.3390/s151127760
Algorithm2 Clustering algorithm
  • (1)
    initialization:
    • (a)
      calculate the distances between the PNsPN and the CNisi as d0i=|sisPN| and the distances between the CNi and the fusion center sFC as d1i=|sisFC| for i = 1, 2, …, D;
    • (b)
      choose 2K CNs with the shortest d0i and select K reference nodes with the shortest d1i from the 2K CNs as the initial cluster heads vk for k = 1, 2, …, K;
    • (c)
      set the initial clusters Ck={vk} and the initial cluster centers ck=vk for k = 1, 2, …, K.
  • (2)
    repeat:
    • (a)
      allocate CNi for i = 1, 2, …, D − K to the nearest cluster ki where ki=argmin1kK|sick| and let Cki=Cki{si};
    • (b)
      to each cluster, update ck by averaging all the si of siCk;
    • (c)
      reselect the cluster head of each cluster by vk=argminsiCk|sick|;
    • (d)
      reinitialize Ck={vk} and ck=vk for k = 1, 2, .., K;
    until: all the CNs in each cluster are not changed.
  • (3)

    Output: Ck for k = 1, 2, .., K.