Function navtk::filtering::experimental::systematic_resampling

Function Documentation

ResamplingResult navtk::filtering::experimental::systematic_resampling(const Vector &weights, const size_t *m_arg)

Stratified resampling method to select samples as children (duplicates) to higher weighted samples.

Parameters
  • weights – The posterior weights.

  • m_arg – A pointer to the number of samples to be returned. Default = nullptr.

Returns

A structure containing a vector of indexes to resample the distribution and the number of particle count mapped to the index.