Skip to main content
. 2020 May 31;20(11):3109. doi: 10.3390/s20113109
Algorithm 1: The minimax PF algorithm for the standard PF in wireless sensor networks
□ Initialization
 for κ=1,⋯,N, where N is the number of particles.
   1. Random generation of initial particles:
   ψ0κ∼pψ0, and assign initial weights: ω0κ=1N.
 end
□ Sequential update
 for t=1,⋯,T, where T is the total time steps.
  for κ=1,⋯,N,
  2. Propagation of particles via a proposal density:
ψtκ∼qψt|ψt−1κ,mt. (32)
  end
  for κ=1,⋯,N,
  3. Computing the weights of particles:
ωi,tκ=p(mi,t|ψtκ)fori=1,…,M (33)
   assuming the proposal density,
   qψt|ψt−1κ,mt=pψk|ψt−1κ.
  end
  for κ=1,⋯,N,
  4. Normalization.
ω¯i,tκ=ωi,tκ∑κ=1Nωi,tκfori=1,…,M. (34)
  5. Selecting the minimum weight among M weights.
ωtM,κ=ω¯τ,tκ,whereτ=argmini∈1,…,Mω¯i,tκ.
  end
  6. Normalization of the weights:
ω¯tM,κ=ωtM,κ∑κ=1NωtM,κforκ=1,⋯,N. (35)
  7. Computing the estimate at the time step t:
ψ^tM=∑κ=1Nω¯tM,κψtκ. (36)
  8. Resampling N particles.
end