Skip to main content
. 2017 Oct 29;17(11):2484. doi: 10.3390/s17112484
Algorithm 2 SMC Filter for BLE Localization
  • 1:

    Instantiate

    For i[1..N], sample P0(i)p(P0)

  • 2:

    Importance Sampling

    Update time index tt+1

    For i[1..N], sample P˜t(i)p(Pt|Pt1(i))

    For i[1..N], evaluate to obtain the importance weights wt(i)=p(Dt|P˜t(i))

    Normalize the importance weights w˜t(i)=wt(i)i=0Nwt(i)

  • 3:

    Select

    Resample N particles as Pt(i) from the particles P˜t(i) according to the importance weights.

  • 4:

    Recurse with repeating 2.