Algorithm 5.1.
Optimizing the particle allocation.
Given the particles and weights at t = 0 or at t ≥ 1: | ||
• Define the following approximate solution to (4.3): | ||
| ||
where is the microbin containing . | ||
• Let count the occupied bins, | ||
| ||
• Let be samples from the distribution . | ||
• In Algorithm 3.1, define the particle allocation as | ||
| ||
If the denominator of (5.3) is 0, we set . |