pf
|
Base class for resampler types that use a Hilbert curve sorting technique. More...
#include <resamplers.h>
Public Types | |
using | ssv = Eigen::Matrix< float_t, dimx, 1 > |
using | arrayVec = std::array< ssv, nparts > |
using | arrayFloat = std::array< float_t, nparts > |
using | usvr = Eigen::Matrix< float_t, dimur, 1 > |
Public Member Functions | |
rbase_hcs ()=default | |
The default constructor. There is no seed-setting. | |
virtual void | resampLogWts (arrayVec &oldParts, arrayFloat &oldLogUnNormWts, const usvr &ur)=0 |
Function to resample from log unnormalized weights. More... | |
std::array< unsigned, nparts > | get_permutation (const arrayVec &unsortedParts) |
get a permutation based on unsorted particle samples (not their weights) More... | |
Static Private Member Functions | |
static bool | hilbertComparison (const ssv &first, const ssv &second) |
Function that "sorts" multidimensional vectors using an (inverse) Hilbert-curve map. For more information see https://arxiv.org/pdf/1511.04992.pdf. | |
Base class for resampler types that use a Hilbert curve sorting technique.
using pf::resamplers::rbase_hcs< nparts, dimx, dimur, num_hilb_bits, float_t >::arrayFloat = std::array<float_t,nparts> |
type alias for array of float_ts
using pf::resamplers::rbase_hcs< nparts, dimx, dimur, num_hilb_bits, float_t >::arrayVec = std::array<ssv, nparts> |
type alias for array of Eigen Matrices
using pf::resamplers::rbase_hcs< nparts, dimx, dimur, num_hilb_bits, float_t >::ssv = Eigen::Matrix<float_t,dimx,1> |
type alias for linear algebra stuff
using pf::resamplers::rbase_hcs< nparts, dimx, dimur, num_hilb_bits, float_t >::usvr = Eigen::Matrix<float_t,dimur,1> |
type alias for common normal random variable
std::array< unsigned, nparts > pf::resamplers::rbase_hcs< nparts, dimx, dimur, num_hilb_bits, float_t >::get_permutation | ( | const arrayVec & | unsortedParts | ) |
get a permutation based on unsorted particle samples (not their weights)
unsortedParts | the particle samples |
|
pure virtual |
Function to resample from log unnormalized weights.
oldParts | |
oldLogUnNormWts | |
ur | common random number used to resample. |