Main MRPT website > C++ reference
MRPT logo
List of all members | Public Member Functions | Public Attributes
mrpt::bayes::CProbabilityParticle< T > Struct Template Reference

Detailed Description

template<class T>
struct mrpt::bayes::CProbabilityParticle< T >

A template class for holding a the data and the weight of a particle.

Particles are composed of two parts:

This structure is used within CParticleFilterData, see that class for more information.

Definition at line 28 of file CProbabilityParticle.h.

#include <mrpt/bayes/CProbabilityParticle.h>

Public Member Functions

 CProbabilityParticle ()
 Default constructor: More...
 
 CProbabilityParticle (const CProbabilityParticle &o)
 Copy constructor: More...
 
CProbabilityParticle< T > & operator= (const CProbabilityParticle &o)
 Copy operator. More...
 

Public Attributes

T * d
 The data associated with this particle. More...
 
double log_w
 The (logarithmic) weight value for this particle. More...
 

Constructor & Destructor Documentation

◆ CProbabilityParticle() [1/2]

template<class T >
mrpt::bayes::CProbabilityParticle< T >::CProbabilityParticle ( )
inline

Default constructor:

Definition at line 41 of file CProbabilityParticle.h.

◆ CProbabilityParticle() [2/2]

template<class T >
mrpt::bayes::CProbabilityParticle< T >::CProbabilityParticle ( const CProbabilityParticle< T > &  o)
inline

Copy constructor:

Definition at line 47 of file CProbabilityParticle.h.

References mrpt::bayes::CProbabilityParticle< T >::d.

Member Function Documentation

◆ operator=()

template<class T >
CProbabilityParticle<T>& mrpt::bayes::CProbabilityParticle< T >::operator= ( const CProbabilityParticle< T > &  o)
inline

Member Data Documentation

◆ d

template<class T >
T* mrpt::bayes::CProbabilityParticle< T >::d

The data associated with this particle.

Definition at line 33 of file CProbabilityParticle.h.

Referenced by mrpt::bayes::CProbabilityParticle< T >::CProbabilityParticle(), and mrpt::bayes::CProbabilityParticle< T >::operator=().

◆ log_w

template<class T >
double mrpt::bayes::CProbabilityParticle< T >::log_w

The (logarithmic) weight value for this particle.

Definition at line 37 of file CProbabilityParticle.h.

Referenced by mrpt::bayes::CProbabilityParticle< T >::operator=().




Page generated by Doxygen 1.8.14 for MRPT 1.1.0 SVN: at lun oct 28 00:54:49 CET 2019 Hosted on:
SourceForge.net Logo