Classes | Typedefs | Functions
particlefilter.h File Reference
#include <stdlib.h>
#include <float.h>
#include <sys/types.h>
#include <vector>
#include <utility>
#include <cmath>
#include <gmapping/utils/gvalues.h>
Include dependency graph for particlefilter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  auxiliary_evolver< Particle, Numeric, QualificationModel, EvolutionModel, LikelyhoodModel >
 
struct  evolver< Particle, EvolutionModel >
 
struct  uniform_resampler< Particle, Numeric >
 

Typedefs

typedef std::pair< uint, uint > UIntPair
 

Functions

template<class Iterator >
double neff (const Iterator &begin, const Iterator &end)
 
template<class Iterator >
void normalize (const Iterator &begin, const Iterator &end)
 
template<typename Vector >
void repeatIndexes (Vector &dest, const std::vector< int > &indexes, const Vector &particles)
 
template<class WeightVector >
void resample (std::vector< int > &indexes, const WeightVector &weights, unsigned int nparticles=0)
 
template<class OutputIterator , class Iterator >
void rle (OutputIterator &out, const Iterator &begin, const Iterator &end)
 
template<class OutputIterator , class Iterator , class Numeric >
void toLogForm (OutputIterator &out, const Iterator &begin, const Iterator &end, Numeric lmax)
 
template<class OutputIterator , class Iterator >
double toNormalForm (OutputIterator &out, const Iterator &begin, const Iterator &end)
 

Typedef Documentation

◆ UIntPair

typedef std::pair<uint,uint> UIntPair

the particle class has to be convertible into numeric data type; That means that a particle must define the Numeric conversion operator; operator Numeric() const. that returns the weight, and the method setWeight(Numeric) that sets the weight.

Definition at line 22 of file particlefilter.h.

Function Documentation

◆ neff()

template<class Iterator >
double neff ( const Iterator &  begin,
const Iterator &  end 
)

Definition at line 98 of file particlefilter.h.

◆ normalize()

template<class Iterator >
void normalize ( const Iterator &  begin,
const Iterator &  end 
)

Definition at line 112 of file particlefilter.h.

◆ repeatIndexes()

template<typename Vector >
void repeatIndexes ( Vector &  dest,
const std::vector< int > &  indexes,
const Vector &  particles 
)

Definition at line 86 of file particlefilter.h.

◆ resample()

template<class WeightVector >
void resample ( std::vector< int > &  indexes,
const WeightVector &  weights,
unsigned int  nparticles = 0 
)

Definition at line 51 of file particlefilter.h.

◆ rle()

template<class OutputIterator , class Iterator >
void rle ( OutputIterator &  out,
const Iterator &  begin,
const Iterator &  end 
)

Definition at line 123 of file particlefilter.h.

◆ toLogForm()

template<class OutputIterator , class Iterator , class Numeric >
void toLogForm ( OutputIterator &  out,
const Iterator &  begin,
const Iterator &  end,
Numeric  lmax 
)

Definition at line 41 of file particlefilter.h.

◆ toNormalForm()

template<class OutputIterator , class Iterator >
double toNormalForm ( OutputIterator &  out,
const Iterator &  begin,
const Iterator &  end 
)

Definition at line 25 of file particlefilter.h.



openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Thu Oct 19 2023 02:25:51