|
Algorithm 1 Non-Gaussian Delayed Particle Smoother (nGDPS) for Vehicle Localization |
| % Initialization: |
| At time : |
| Set , the state vector representing the initial information of vehicle where , , and are position, velocity, and acceleration respectively; |
| Select initial covariance matrices and related to the measurement and process noises respectively; |
| Draw M particles and set the weight , given that the prior knowledge ; |
| Set the fixed-delay size L and sample time K. |
|
For each time instant
do
|
For each particle
do
% Importance sampling:
Compute the state of Λ particles where Λ is the subset of particles around the vehicle state at time (i.e., );
, where stands for the importance function defined using EnKF according to Equation (13);
For each
do
Update the process and measurement noise densities based on Equations (2a) and (2b)
The definite scale matrices in terms of the associated covariance matrices are given by and , () respectively.
% Importance weight update:
Compute new weight according to Equation (14);
End For
% Normalization:
The normalized weight is given by , and the state of the vehicle at time k + L is provided by: .
% Resampling:
Compute the effective sample size as defined in [46];
If
(the predefined threshold) then
Resample using the Delayed Gibbs sampling (DGS) method, otherwise,
End If
|
| End For
|
| End For |