Skip to main content
. 2022 Sep 14;22(18):6941. doi: 10.3390/s22186941
Algorithm 1: Stochastic Approximation EM-based AP positioning.
Input: Observed ADOA vectors {θ˜(pn)}n=1N at a large number of random and unknown positions
  • 1:

    Initialization: a^3:L0, a^1=[00],a^2=[10],t=0

  • 2:

    repeat

  • 3:

       tt+1

        E-step in t-th iteration:

  • 4:

       Select M MT positions {p¯m}m=1M randomly

  • 5:

       Generate θ(a^3:Lt1,p¯m) based on Equation (8)

  • 6:

       Obtain the position samples {p^nt}n=1N for observed ADOA vectors {θ˜(pn)}n=1N according to Equation (12)

      M-step in t-th iteration:

  • 7:

       update a^3:Lt based on {p^nt}n=1N according to Equation (14)

  • 8:

    untill=3La^lta^lt12a^3:Lt2<ε or t>MaxIT


Output: the AP position estimates a^3:Lt and a^1:2