FOR  : N
 Draw
 Calculate
END FOR
Calculate total weight:
For  : N
 Normalize:
END FOR
Resample [17]
=
Pseudocode 1: Description of the standard particle filter.