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

#include <resamplers.h>

Inheritance diagram for pf::resamplers::mn_resamp_fast1< nparts, dimx, float_t >:
Collaboration diagram for pf::resamplers::mn_resamp_fast1< 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

 mn_resamp_fast1 ()=default
 Default constructor.
 
 mn_resamp_fast1 (unsigned long seed)
 Default constructor.
 
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::mn_resamp_fast1< nparts, dimx, float_t >

Author
taylor

Member Typedef Documentation

◆ arrayFloat

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

type alias for linear algebra stuff

Member Function Documentation

◆ resampLogWts()

template<size_t nparts, size_t dimx, typename float_t >
void pf::resamplers::mn_resamp_fast1< 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: