pf
pf::rbase< nparts, dimx > Class Template Referenceabstract

Base class for all resampler types. More...

#include <resamplers.h>

Inheritance diagram for pf::rbase< nparts, dimx >:

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
 

Detailed Description

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

Base class for all resampler types.

Author
taylor
Date
15/04/18

Member Typedef Documentation

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

type alias for array of doubles

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

type alias for array of Eigen Matrices

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

type alias for linear algebra stuff

Member Function Documentation

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

Function to resample from log unnormalized weights.

Parameters
oldParts
oldLogUnNormWts

Implemented in pf::mn_resampler< nparts, dimx >.


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