Go to the documentation of this file.
9 #ifndef CPoint2DPDFGaussian_H
10 #define CPoint2DPDFGaussian_H
45 mean_point = this->
mean;
94 double mahalanobisDistanceToPoint( const
double x, const
double y ) const;
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
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...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
mrpt::math::CMatrixDouble22 cov
The 2x2 covariance matrix.
CPoint2D mean
The mean value.
A gaussian distribution for 2D points.
A numeric matrix of compile-time fixed size.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
EIGEN_STRONG_INLINE double mean() const
Computes the mean of the entire matrix.
void getMean(CPoint2D &p) const MRPT_OVERRIDE
Returns an estimate of the point, (the mean, or mathematical expectation of the PDF)
Declares a class that represents a Probability Distribution function (PDF) of a 2D point (x,...
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,...
A class used to store a 2D point.
void getCovarianceAndMean(mrpt::math::CMatrixDouble22 &cov, CPoint2D &mean_point) const MRPT_OVERRIDE
Returns an estimate of the point covariance matrix (2x2 cov matrix) and the mean, both at once.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 22:32:58 UTC 2019 | | |