Skip to main content
. 2019 Sep 30;19(19):4252. doi: 10.3390/s19194252
Algorithm 1 Cluster Registration.
Require:{C}:Set of registered clusters
Require:Cx:Cluster waiting for registration
Require:C0,C1,C2{C}:Three clusters closest to Cx in {C}
 1: for each i{0,1,2} do
 2: if sqrDist(Oi,Ox)>maxDist then
 3:  {C}(Cx&apx=1); break;
 4: end if
 5: if sqrDist(Oi,Ox)<minDist then
 6:  {Pi}({Px}&api++);
 7: else
 8:  count0;
 9:  for all pj{Px} do
10:   if radiusSearch(pj,{Pi},rad)>minNum then
11:    count++;
12:   end if
13:  end for
14:  if count>sizeof({Px}) / thresholdNum then
15:   {Pi}({Px}&api++);
16:  end if
17: end if
18: end for