Skip to main content
. 2022 Mar 16;22(6):2300. doi: 10.3390/s22062300
Algorithm 2 Get Position Estimates Using K-Nearest Neighbors.
Require: D^=000T
  •   1:

     

  •   2:

    while w<W do

  •   3:

       

  •   4:

        Get (i,j,k)=W[w]

  •   5:

       

  •   6:

        D˜=D[i,j,k]

  •   7:

       

  •   8:

        D^=D^+D˜

  •   9:

       

  •   10:

    end while

  •   11:

     

  •   12:

    D^=D^/W

  •   13:

    return D^