pf
pf::mn_resampler< nparts, dimx > Class Template Reference

Performs multinomial resampling. More...

#include <resamplers.h>

Inheritance diagram for pf::mn_resampler< nparts, dimx >:
Collaboration diagram for pf::mn_resampler< nparts, dimx >:

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 >
 
- Public Types inherited from pf::rbase< nparts, dimx >
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...
 
- Public Member Functions inherited from pf::rbase< nparts, dimx >
 rbase ()
 The default constructor. This is the only option available. Sets the seed with the clock.
 

Private Attributes

std::mt19937 m_gen
 prng
 

Detailed Description

template<size_t nparts, size_t dimx>
class pf::mn_resampler< nparts, dimx >

Performs multinomial resampling.

Author
taylor
Date
15/04/18

Member Typedef Documentation

template<size_t nparts, size_t dimx>
using pf::mn_resampler< nparts, dimx >::arrayDouble = std::array<double,nparts>

type alias for array of doubles

template<size_t nparts, size_t dimx>
using pf::mn_resampler< nparts, dimx >::arrayInt = std::array<unsigned int,nparts>

type alias for array of integers

template<size_t nparts, size_t dimx>
using pf::mn_resampler< nparts, dimx >::arrayVec = std::array<ssv, nparts>

type alias for linear algebra stuff

template<size_t nparts, size_t dimx>
using pf::mn_resampler< nparts, dimx >::ssv = Eigen::Matrix<double,dimx,1>

type alias for linear algebra stuff

Member Function Documentation

template<size_t nparts, size_t dimx>
void pf::mn_resampler< nparts, dimx >::resampLogWts ( arrayVec oldParts,
arrayDouble oldLogUnNormWts 
)
virtual

resamples particles.

Parameters
oldPartsthe old particles
oldLogUnNormWtsthe old log unnormalized weights

Implements pf::rbase< nparts, dimx >.


The documentation for this class was generated from the following file: