pf
|
Base class for all resampler types. 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 > |
Public Member Functions | |
rbase () | |
The default constructor gets called by default, and it sets the seed with the clock. | |
rbase (unsigned long seed) | |
The constructor that sets the seed deterministically. More... | |
virtual void | resampLogWts (arrayVec &oldParts, arrayFloat &oldLogUnNormWts)=0 |
Function to resample from log unnormalized weights. More... | |
Protected Attributes | |
std::mt19937 | m_gen |
prng | |
Base class for all resampler types.
using pf::resamplers::rbase< nparts, dimx, float_t >::arrayFloat = std::array<float_t,nparts> |
type alias for array of float_ts
using pf::resamplers::rbase< nparts, dimx, float_t >::arrayVec = std::array<ssv, nparts> |
type alias for array of Eigen Matrices
using pf::resamplers::rbase< nparts, dimx, float_t >::ssv = Eigen::Matrix<float_t,dimx,1> |
type alias for linear algebra stuff
pf::resamplers::rbase< nparts, dimx, float_t >::rbase | ( | unsigned long | seed | ) |
The constructor that sets the seed deterministically.
seed | the seed |
|
pure virtual |
Function to resample from log unnormalized weights.
oldParts | |
oldLogUnNormWts |
Implemented in pf::resamplers::mn_resamp_fast1< nparts, dimx, float_t >, pf::resamplers::systematic_resampler< nparts, dimx, float_t >, pf::resamplers::stratif_resampler< nparts, dimx, float_t >, pf::resamplers::resid_resampler< nparts, dimx, float_t >, and pf::resamplers::mn_resampler< nparts, dimx, float_t >.