Legend:
Library
Module
Module type
Parameter
Class
Class type
Resampling functions
Resampling consists in sampling N new particles from a given population such that the resulting population is distributed identically to the initial one (ie is unbiased) and such that the statistical quality of the resulting population is improved.
This module provides an API allowing users to specify their own resampling schemes. It also provides some well-known resampling strategies via the Resampling.Make_predefined functor.
Example
A straightforward strategy is to sample from a multinomial distribution with parameters N and the normalized scores of the given population. An implementation of corresponding algorithm using the API of this module is described here. Note that better-performing schemes are used in practice.
API
A resampling algorithm takes as input a "current" population of particles and must produce the "next" population. The only operations available to do so are accessed through a first class module of type Particles.