pf
pf::resamplers::resid_resampler< nparts, dimx, float_t > Class Template Reference

#include <resamplers.h>

Inheritance diagram for pf::resamplers::resid_resampler< nparts, dimx, float_t >:
Collaboration diagram for pf::resamplers::resid_resampler< 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 >
 
using arrayInt = std::array< unsigned int, nparts >
 

Public Member Functions

 resid_resampler ()=default
 Default constructor.
 
 resid_resampler (unsigned long seed)
 Constructor that sets the seed. More...
 
void resampLogWts (arrayVec &oldParts, arrayFloat &oldLogUnNormWts)
 resamples particles. More...
 

Additional Inherited Members

- Private Types inherited from pf::resamplers::rbase< nparts, dimx, float_t >
using ssv = Eigen::Matrix< float_t, dimx, 1 >
 
using arrayVec = std::array< ssv, nparts >
 
using arrayFloat = std::array< float_t, nparts >
 
- Private Member Functions inherited from pf::resamplers::rbase< nparts, dimx, float_t >
 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...
 
- Private Attributes inherited from pf::resamplers::rbase< nparts, dimx, float_t >
std::mt19937 m_gen
 prng
 

Detailed Description

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

Author
taylor
Date
10/25/19

Member Typedef Documentation

◆ arrayFloat

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

type alias for array of float_ts

◆ arrayInt

template<size_t nparts, size_t dimx, typename float_t >
using pf::resamplers::resid_resampler< nparts, dimx, float_t >::arrayInt = std::array<unsigned int, nparts>

type alias for array of integers

◆ arrayVec

template<size_t nparts, size_t dimx, typename float_t >
using pf::resamplers::resid_resampler< 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::resid_resampler< nparts, dimx, float_t >::ssv = Eigen::Matrix<float_t,dimx,1>

type alias for linear algebra stuff

Constructor & Destructor Documentation

◆ resid_resampler()

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

Constructor that sets the seed.

Parameters
seed

Member Function Documentation

◆ resampLogWts()

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

resamples particles.

Parameters
oldPartsthe old particles
oldLogUnNormWtsthe old log unnormalized weights

Implements pf::resamplers::rbase< nparts, dimx, float_t >.


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