pf
|
Base class for all resampler types. More...
#include <resamplers.h>
Public Types | |
using | ssv = Eigen::Matrix< double, dimx, 1 > |
using | arrayVec = std::array< ssv, nparts > |
using | arrayDouble = std::array< double, nparts > |
Public Member Functions | |
rbase () | |
The default constructor. This is the only option available. Sets the seed with the clock. | |
virtual void | resampLogWts (arrayVec &oldParts, arrayDouble &oldLogUnNormWts)=0 |
Function to resample from log unnormalized weights. More... | |
Private Attributes | |
std::mt19937 | m_gen |
prng | |
Base class for all resampler types.
using pf::rbase< nparts, dimx >::arrayDouble = std::array<double,nparts> |
type alias for array of doubles
using pf::rbase< nparts, dimx >::arrayVec = std::array<ssv, nparts> |
type alias for array of Eigen Matrices
using pf::rbase< nparts, dimx >::ssv = Eigen::Matrix<double,dimx,1> |
type alias for linear algebra stuff
|
pure virtual |
Function to resample from log unnormalized weights.
oldParts | |
oldLogUnNormWts |
Implemented in pf::mn_resampler< nparts, dimx >.