An Information Theoretic Rule for Sample Size Adaptation in Particle Filtering