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 rbase< nparts, dimx, float_t >::arrayFloat = std::array<float_t,nparts> |
type alias for array of float_ts
using rbase< nparts, dimx, float_t >::arrayVec = std::array<ssv, nparts> |
type alias for array of Eigen Matrices
using rbase< nparts, dimx, float_t >::ssv = Eigen::Matrix<float_t,dimx,1> |
type alias for linear algebra stuff
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 mn_resamp_fast1< nparts, dimx, float_t >, systematic_resampler< nparts, dimx, float_t >, stratif_resampler< nparts, dimx, float_t >, resid_resampler< nparts, dimx, float_t >, and mn_resampler< nparts, dimx, float_t >.