Algorithm 3.
Backward Simulation Particle Smoother
| 1: | /* simulate T smoothed trajectories from time N */ |
| 2: | for k = 1 to T do |
| 3: | /* draw index ℓ according to weights */ |
| 4: | set . |
| 5: | end for |
| 6: | /* propagate the remaining simulated trajectories */ |
| 7: | for t = N − 1 to 1 do |
| 8: | for k = 1 : T do |
| 9: | /* compute new weights */ |
| 10: | for j = 1, …, M. |
| 11: | /* normalize the smoothing weights */ |
| 12: | . |
| 13: | /* draw index ℓ according to */ |
| 14: | set . |
| 15: | end for |
| 16: | end for |