Skip to main content

Table 1 Pseudo code of the MP operation

From: Multi-prediction particle filter for efficient parallelized implementation

1: /* Multi-Prediction Operation */

2: for i = 1 to N do

3:       x temp ( 1 ) ~f ( x t - 1 ( i ) , n t - 1 ( 1 ) ) //Generate 1st predicted particle

4:       w temp ( 1 ) = w t - 1 ( i ) â‹…p ( y t | x temp ( 1 ) )

5:       x t ( i ) = x temp ( 1 )

6:       w t ( i ) = w temp ( 1 )

7:      for Predict count j = 2 to P do

8:       x temp ( j ) ~f ( x t - 1 ( i ) , n t - 1 ( j ) )

9:       w temp ( j ) = w t - 1 ( i ) â‹…p ( y t | x temp ( j ) )

10:      LPS( x t ( i ) , w t ( i ) , x temp ( j ) , w temp ( j ) )

11:     end for

12:   end for