80 DllExport
void clear(
void);
104 DllExport
void setMu(Mat &mu);
109 DllExport Mat
getMu(
void)
const {
return m_mu.clone(); }
114 DllExport
void setSigma(Mat &sigma);
140 DllExport
void addPoint(
const Mat &point,
bool approximate =
false);
145 DllExport
long double getAlpha(
void)
const;
167 DllExport
double getValue(Mat &x, Mat &aux1 = EmptyMat, Mat &aux2 = EmptyMat, Mat &aux3 = EmptyMat)
const;
void setNumPoints(long nPoints)
Sets the number of approximation points.
void clear(void)
Clears class variables.
void addPoint(const Mat &point, bool approximate=false)
Adds new k-dimensional point (sample) for Gaussian distribution approximation.
Mat getSigmaInv(void) const
Returns .
Mat calculateQ(void) const
double getMahalanobisDistance(const Mat &x) const
Returns the Mahalanobis distance between argument point x and the center of multivariate normal distr...
void setSigma(Mat &sigma)
Sets .
Mat getSample(void) const
Returns a random vector (sample) from multivariate normal distribution.
double getValue(Mat &x, Mat &aux1=EmptyMat, Mat &aux2=EmptyMat, Mat &aux3=EmptyMat) const
Returns unscaled value of the Gaussian function.
size_t getNumPoints(void) const
Returns the number of approximation points.
CKDGauss & operator+=(const CKDGauss &rhs)
Compound merge operator.
long double getAlpha(void) const
Returns .
CKDGauss(dword k)
Constructor.
double getKullbackLeiberDivergence(const CKDGauss &x) const
Returns the Kullback-Leiber divergence from the multivariate normal distribution to argument multiva...
double getEuclidianDistance(const Mat &x) const
Returns the Euclidian distance between argument point x and the center of multivariate normal distrib...
Mat getSigma(void) const
Returns .
void setMu(Mat &mu)
Sets .
std::vector< CKDGauss > GaussianMixture
void reset_SigmaInv_Q_Alpha(void)
bool empty(void) const
Checks weather the Gaussian function is approximated.
CKDGauss & operator=(const CKDGauss &rhs)
Copy operator.
Multivariate Gaussian distribution class.
Mat getMu(void) const
Returns .
static const bool USE_SAFE_SIGMA