Skip to main content
. 2023 Apr 3;23(7):3708. doi: 10.3390/s23073708
Algorithm 1: K-medoids for uncertain data using a probabilistic distance measure in feature space.
1.  Input: n: The number of objects in cluster k, K: The number of clusters, iter = 0;
2.  Randomly select the cluster medoids C0={c10 ,,cK0} obtained from the initial clusters
3.  Initialize
4.  CVIs=cvi1, , cviK obtained UOSDU, UOSCH, UFSDU, and UFSCH
5.  Repeat
6.  for k=2 to K
7.    ckold=ck0; cknew=0
8.    Compute the new medoids:
9.    while ckold cknew 
10.      p=argmin1inj=1kKPDBhatt(xi, cjk ), where j is an index of cluster medoid in ck  
11.      cknew=xp 
12.    end
13.    Calculate the cvik using Equations (1), (2), (17), and (18).
14.  end
15.  iter = iter + 1
16. Until (iter = Maxiter)