Main MRPT website > C++ reference for MRPT 1.9.9
CProbabilityParticle.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef CPROBABILITYPARTICLE_H
10 #define CPROBABILITYPARTICLE_H
11 
13 
14 namespace mrpt
15 {
16 namespace bayes
17 {
18 /** A template class for holding a the data and the weight of a particle.
19  * Particles are composed of two parts:
20  * - A state vector descritor, which in this case can be any user defined
21  *CSerializable class
22  * - A (logarithmic) weight value.
23  *
24  * This structure is used within CParticleFilterData, see that class for more
25  *information.
26  * \ingroup mrpt_base_grp
27  */
28 template <class T>
30 {
31  public:
32  /** The data associated with this particle. The use of copy_ptr<> allows
33  * relying on compiler-generated copy ctor, etc. */
35  /** The (logarithmic) weight value for this particle. */
36  double log_w;
37 
38  /** Default constructor */
40 };
41 
42 } // namespace bayes
43 } // namespace mrpt
44 #endif
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A template class for holding a the data and the weight of a particle.
CProbabilityParticle()
Default constructor.
double log_w
The (logarithmic) weight value for this particle.
mrpt::utils::copy_ptr< T > d
The data associated with this particle.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019