Skip to main content
. 2020 Apr 29;20(9):2513. doi: 10.3390/s20092513
Algorithm 1 findLocationClusters.
   Input: Fkl,λl,(Δ1h,Δ2h,Δh^h),(Δ1l,Δ2l,Δml)      Output: ckl,c^kl
  • 1:

    ckl0

  • 2:

    clusterID=1

  • 3:

    o^clusterIDl=clusterID

  • 4:

    fori1 to m do

  • 5:

      updateCluster=false

  • 6:

      if oil=0 then

  • 7:

        for j1 to m do

  • 8:

          for a1 to h^ do

  • 9:

            compute Yl(i,j) as in Equation (6)

  • 10:

            if (1Yl(i,j)<0.5ojl=0) then

  • 11:

              ojl=clusterID //assign i and j to the same cluster

  • 12:

              updateCluster=true

  • 13:

            end if

  • 14:

          end for

  • 15:

        end for

  • 16:

        if (updateCluster) then

  • 17:

          clusterID=clusterID+1

  • 18:

          o^clusterIDl=clusterID

  • 19:

        end if

  • 20:

      end if

  • 21:

    end for