10 #define CPointPDFSOG_H
63 void assureSymmetry();
100 m_modes.push_back(m);
110 void resize(
const size_t N);
111 size_t size()
const {
return m_modes.size(); }
112 bool empty()
const {
return m_modes.empty(); }
121 void normalizeWeights();
164 void evaluatePDFInArea(
171 mrpt::math::CMatrixD &outMatrix,
172 bool sumOverAllZs = false );
175 double evaluatePDF( const
CPoint3D &
x,
bool sumOverAllZs ) const;
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
A class used to store a 3D point.
A gaussian distribution for 3D points.
Declares a class that represents a Probability Distribution function (PDF) of a 3D point (x,...
Declares a class that represents a Probability Density function (PDF) of a 3D point .
iterator erase(iterator i)
size_t size() const
Return the number of Gaussian modes.
std::deque< TGaussianMode > CListGaussianModes
const_iterator begin() const
CListGaussianModes m_modes
The list of SOG modes.
std::deque< TGaussianMode >::const_iterator const_iterator
void push_back(const TGaussianMode &m)
Inserts a copy of the given mode into the SOG.
std::deque< TGaussianMode >::iterator iterator
const TGaussianMode & get(size_t i) const
Access to individual beacons.
bool empty() const
Return whether there is any Gaussian mode.
const_iterator end() const
TGaussianMode & get(size_t i)
Access to individual beacons.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
void saveToTextFile(const std::string &file, mrpt::math::TMatrixTextFileFormat fileFormat=mrpt::math::MATRIX_FORMAT_ENG, bool appendMRPTHeader=false, const std::string &userHeader=std::string()) const
Save matrix to a text file, compatible with MATLAB text format (see also the methods of matrix classe...
const Scalar * const_iterator
GLsizei const GLchar ** string
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
Eigen::Matrix< typename MATRIX::Scalar, MATRIX::ColsAtCompileTime, MATRIX::ColsAtCompileTime > cov(const MATRIX &v)
Computes the covariance matrix from a list of samples in an NxM matrix, where each row is a sample,...
VALUE & operator[](const KEY &key)
Write/read via [i] operator, that creates an element if it didn't exist already.
void clear()
Clear the contents of this container.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
The struct for each mode:
double log_w
The log-weight.