Skip to main content
. 2024 Apr 5;24(7):2313. doi: 10.3390/s24072313
Algorithm 1 Calculation method for the prohibited zone
  • Input: 

    (X,Y,H)

  • Output: 

    Outline

  •   1:

    repeat

  •   2:

        repeat

  •   3:

            repeat

  •   4:

               GTx=Gbf(x,y,h,θ)

  •   5:

               GRx=Ga(x,y,h,α\β)

  •   6:

               Ploss=random(PLOS,PNLOS)

  •   7:

               I(x,y,h)=PTx+GTx+GRxPloss

  •   8:

               if I(x,y,h)=Th then zi=(x,y,h)

  •   9:

                   i=i+1

  • 10:

               else

  • 11:

                   i=i

  • 12:

               end if

  • 13:

               x=x+1

  • 14:

            until x=X

  • 15:

            y=y+1

  • 16:

        until y=Y

  • 17:

        h=h+1

  • 18:

    until h=H

  • 19:

    Outline={z1,z2,,zi1}