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 MRPT_OVERRIDE
C++11 "override" for virtuals:
std::deque< TGaussianMode > CListGaussianModes
Declares a class that represents a Probability Density function (PDF) of a 3D point ...
The struct for each mode:
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
void clear()
Clear the contents of this container.
bool empty() const
Return whether there is any Gaussian mode.
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...
void push_back(const TGaussianMode &m)
Inserts a copy of the given mode into the SOG.
std::deque< TGaussianMode >::const_iterator const_iterator
VALUE & operator[](const KEY &key)
Write/read via [i] operator, that creates an element if it didn't exist already.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
GLsizei const GLchar ** string
A class used to store a 3D point.
iterator erase(iterator i)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
size_t size() const
Return the number of Gaussian modes.
const_iterator begin() const
const_iterator end() const
double log_w
The log-weight.
std::deque< TGaussianMode >::iterator iterator
Declares a class that represents a Probability Distribution function (PDF) of a 3D point (x...
CListGaussianModes m_modes
The list of SOG modes.
A gaussian distribution for 3D points.