Skip to main content
. 2023 Mar 10;23(6):3014. doi: 10.3390/s23063014
Algorithm 3 2D UFBS placement process through the k-medoids algorithm with Y = 1
  • 1:

    input: The set of coordinates of all GMTs U={u1,u2,,uN}

  • 2:

    Bk = 0,k=1,2,,N

  • 3:

    fori1 to N do

  • 4:

        Bi=j=1Nuiuj2

  • 5:

    end for

  • 6:

    j=argminBii=1N

  • 7:

    output: The medoid point that the UFBS will be deployed uj.