Skip to main content
. 2021 Feb 5;21(4):1090. doi: 10.3390/s21041090
Algorithm 1 Proposed localization algorithm.
At t=1, initialize px1|Z1 using (7). At each t>1:
  • 1.
    Compute λt and Λt using (18) and (19).
  • 2.
    For each j=1,,I, do:
    • (a)
      Pick an index i1,,I by drawing it from the discrete distribution such that i has probability proportional to ϖt1|t1iαti.
    • (b)
      Draw yt|tj from Nyt;ξti,Ξti.
    • (c)
      Compute the particle weight using ϖt|tj=pyt|tj|Ztp˜tyt|tj.
    • (d)
      Pick an index i1,,I by drawing it from the discrete distribution such that i has probability proportional to ψtiyt|tj.
    • (e)
      Draw θt|tj from Nμtiyt|tj,ρtiyt|tj.
    • (f)
      Put xt|tj=yt|tj,θt|tj.
  • 3.
    Normalize the weights so that j=1Iϖt|tj=1.
  • 4.
    Estimate the position using x^t=i=1Iϖt|tixt|ti.