View full-text article in PMC Sensors (Basel). 2019 Dec 10;19(24):5437. doi: 10.3390/s19245437 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 Particle Filter 1: for k=1,⋯,T do 2: for i=1,⋯,N do 3: Sample X˜ki∼p·Xk−1i,Zk; 4: Set ω˜ki=ωk−1igkZkX˜kifkk−1X˜kiXk−1ipkk−1X˜kiX1:k−1i,Z1:k; 5: Normalise weights ωki=ω˜ki∑j=1Nω˜kj, here ∑i=1Nωki=1; 6: end for 7: end for 8:Resample ωki,Xkii=1N and get ω˜ki,X˜kii=1N; 9:Set π^k=∑i=1NωkiδXki as the estimated posterior probability density;