Skip to main content
. 2021 Mar 4;21(5):1772. doi: 10.3390/s21051772
Algorithm 4. MCL Algorithm
Input:χt1,ut,zt,m
Output:χt
1: Initialization, χt=χt=Ø
2: For j=1 to M do
3: xt[j]= sample_motion_model (ut,xt1[j])
4: wt[j]= measurement_model (zt,xt[j],m)
5: χt=χt+<xt[m],wt[m]>
6: End for
7: For j=1 to M do
8: Draw i with probability wt[i]
9: Add xt[i] to χt
10: End for
11: Return χt