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

Base class for all resampler types. More...

#include <resamplers.h>

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

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
 

Detailed Description

template<size_t nparts, size_t dimx, typename float_t>
class pf::resamplers::rbase< nparts, dimx, float_t >

Base class for all resampler types.

Author
taylor
Date
15/04/18

Member Typedef Documentation

◆ arrayFloat

template<size_t nparts, size_t dimx, typename float_t >
using pf::resamplers::rbase< nparts, dimx, float_t >::arrayFloat = std::array<float_t,nparts>

type alias for array of float_ts

◆ arrayVec

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

type alias for array of Eigen Matrices

◆ ssv

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

type alias for linear algebra stuff

Constructor & Destructor Documentation

◆ rbase()

template<size_t nparts, size_t dimx, typename float_t >
pf::resamplers::rbase< nparts, dimx, float_t >::rbase ( unsigned long  seed)

The constructor that sets the seed deterministically.

Parameters
seedthe seed

Member Function Documentation

◆ resampLogWts()

template<size_t nparts, size_t dimx, typename float_t >
virtual void pf::resamplers::rbase< nparts, dimx, float_t >::resampLogWts ( arrayVec oldParts,
arrayFloat oldLogUnNormWts 
)
pure virtual

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