Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
jafar::filter::ParticleFilter Class Reference

Basic particle filter. More...


Detailed Description

Basic particle filter.

Definition at line 18 of file particleFilter.hpp.

#include <particleFilter.hpp>

List of all members.

Public Types

typedef std::vector
< jblas::vec >::iterator 
STATE_IT
typedef std::vector
< jblas::vec >::const_iterator 
STATE_CONST_IT

Public Member Functions

 ParticleFilter (std::size_t nbParticles_, std::size_t sizeState_, const jblas::vec &stateMin_, const jblas::vec &stateMax_)
 Create a particle filter.
std::size_t sizeState () const
std::size_t getNbParticles () const
double getWeight (std::size_t index_) const
const jblas::vecgetState (std::size_t index_) const
void predict (LinearPredictModel &m_)
void update (jafar::filter::JacobianObserveModel &m_, double z_)
 This function computes the observation step (innovation is given).
const jblas::vecgetStateMean ()
 Resample the particles.
const jblas::sym_matgetStateCov ()

Protected Member Functions

void computeMeanAndCov ()

Protected Attributes

std::size_t nbParticles
std::size_t _sizeState
jblas::vec weight
std::vector< jblas::vecstates
jblas::vec stateMean
jblas::sym_mat stateCov
bool meanAndCovUpToDate
jafar::jmath::MultiDimNormalDistribution predictNoise

Constructor & Destructor Documentation

jafar::filter::ParticleFilter::ParticleFilter ( std::size_t  nbParticles_,
std::size_t  sizeState_,
const jblas::vec stateMin_,
const jblas::vec stateMax_ 
)

Create a particle filter.

Parameters:
nbParticles_the initial number of particles
sizeState_the size of the estimated state Create a particle filter with a set of identical particles.
nbParticles_The initial number of particles
initState_The initial state of the particles Create a particule filter with uniformly chosen particles.
nbParticles_The initial number of particles
sizeState_the size of the estimated state
stateMin_The lower state
stateMax_The upper state

Member Function Documentation

Returns:
The covariance matrix of the state estimated by the particles

Resample the particles.

The number of particles remains the same. Resample a new nember of particles.

Parameters:
nbParticles_The new nember of particles

This function computes the observation step (innovation is given).

Parameters:
m_observation model
z_observation
R_measure noise covariance

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:36 for Jafar by doxygen 1.7.6.1
LAAS-CNRS