pf
|
Performs multinomial resampling. 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 > |
using | arrayInt = std::array< unsigned int, nparts > |
![]() | |
using | ssv = Eigen::Matrix< double, dimx, 1 > |
using | arrayVec = std::array< ssv, nparts > |
using | arrayDouble = std::array< double, nparts > |
Public Member Functions | |
mn_resampler () | |
Default constructor. Only option available. | |
void | resampLogWts (arrayVec &oldParts, arrayDouble &oldLogUnNormWts) |
resamples particles. More... | |
![]() | |
rbase () | |
The default constructor. This is the only option available. Sets the seed with the clock. | |
Private Attributes | |
std::mt19937 | m_gen |
prng | |
Performs multinomial resampling.
using pf::mn_resampler< nparts, dimx >::arrayDouble = std::array<double,nparts> |
type alias for array of doubles
using pf::mn_resampler< nparts, dimx >::arrayInt = std::array<unsigned int,nparts> |
type alias for array of integers
using pf::mn_resampler< nparts, dimx >::arrayVec = std::array<ssv, nparts> |
type alias for linear algebra stuff
using pf::mn_resampler< nparts, dimx >::ssv = Eigen::Matrix<double,dimx,1> |
type alias for linear algebra stuff
|
virtual |
resamples particles.
oldParts | the old particles |
oldLogUnNormWts | the old log unnormalized weights |
Implements pf::rbase< nparts, dimx >.