Main MRPT website
>
C++ reference for MRPT 1.9.9
mrpt
bayes
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
12
#include <
mrpt/utils/generic_copier_ptr.h
>
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>
29
struct
CProbabilityParticle
30
{
31
public
:
32
/** The data associated with this particle. The use of copy_ptr<> allows
33
* relying on compiler-generated copy ctor, etc. */
34
mrpt::utils::copy_ptr<T>
d
;
35
/** The (logarithmic) weight value for this particle. */
36
double
log_w
;
37
38
/** Default constructor */
39
CProbabilityParticle
() :
d
(),
log_w
(.0) {}
40
};
41
42
}
// namespace bayes
43
}
// namespace mrpt
44
#endif
mrpt::utils::internal::generic_copier_ptr
Definition:
generic_copier_ptr.h:47
generic_copier_ptr.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition:
CParticleFilter.h:17
mrpt::bayes::CProbabilityParticle
A template class for holding a the data and the weight of a particle.
Definition:
CProbabilityParticle.h:29
mrpt::bayes::CProbabilityParticle::CProbabilityParticle
CProbabilityParticle()
Default constructor.
Definition:
CProbabilityParticle.h:39
mrpt::bayes::CProbabilityParticle::log_w
double log_w
The (logarithmic) weight value for this particle.
Definition:
CProbabilityParticle.h:36
mrpt::bayes::CProbabilityParticle::d
mrpt::utils::copy_ptr< T > d
The data associated with this particle.
Definition:
CProbabilityParticle.h:34
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