![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
N-dimensional gaussian function having diagonal covariance matrix. More...
#include <mdsGaussianFunc.h>
Public Types | |
| enum | { NUM_OF_DIMENSIONS = N } |
| The number of dimensions. More... | |
| typedef T | tElement |
| Type used for feature representation. | |
| typedef CStaticVector< T, N > | tVector |
| Vector used to represent mean and diagonal covariance matrix of the gaussian function. | |
Public Member Functions | |
| CGaussianFunc () | |
| Default constructor. | |
| CGaussianFunc (double dWeight, const tVector &Mean, const tVector &Cov) | |
| Constructor. | |
| void | computeInverse () |
| Normalizes the covariance matrix and computes its determinant and inverse. | |
| tVector & | getCov () |
| Returns diagonal covariance matrix of the gaussian function. | |
| const tVector & | getCov () const |
| T | getCov (mds::tSize i) const |
| Returns element of the diagonal covariance matrix. | |
| tVector & | getMean () |
| Returns component mean. | |
| const tVector & | getMean () const |
| T | getMean (mds::tSize i) const |
| Returns component mean. | |
| tSize | getNumOfDimensions () const |
| Returns the number od dimensions. | |
| double | getValue (const tVector &x) |
| Returns value of the gaussian function. | |
| double | getWeight () const |
| Returns weight of the mixture component. | |
| double | getWeightedValue (const tVector &x) |
| Returns weighted value of the gaussian function. | |
| void | setCov (const tVector &Cov) |
| Sets diagonal covariance matrix of the gaussian function. | |
| void | setCov (mds::tSize i, T Value) |
| Directly sets element of the diagonal covariance matrix. | |
| void | setMean (const tVector &Mean) |
| Sets mean of the gaussian function. | |
| void | setMean (mds::tSize i, T Value) |
| Sets mean of the gaussian function. | |
| void | setWeight (double dWeight) |
| Sets weight of the component. | |
| ~CGaussianFunc () | |
| Destructor. | |
Static Public Member Functions | |
| static void | setMinCovariance (T Value) |
| Sets minimal allowed covariance value in the matrix. | |
Protected Attributes | |
| bool | m_bModified |
| Helper flag;. | |
| tVector | m_Cov |
| Diagonal covariance matrix and its inverse. | |
| tVector | m_CovDet |
| Determinant of the covariance matrix. | |
| double | m_dWeight |
| Weight of the gaussian function. | |
| tVector | m_InvCov |
| tVector | m_Mean |
| Mean value. | |
Static Protected Attributes | |
| static T | m_MinCovariance = T(GaussianFunc::DEFAULT_MIN_COVARIANCE) |
| Minimal allowed covariance value. | |
N-dimensional gaussian function having diagonal covariance matrix.
| typedef T mds::math::CGaussianFunc< T, N >::tElement |
Type used for feature representation.
| typedef CStaticVector<T,N> mds::math::CGaussianFunc< T, N >::tVector |
Vector used to represent mean and diagonal covariance matrix of the gaussian function.
| mds::math::CGaussianFunc< T, N >::CGaussianFunc | ( | ) |
Default constructor.
| mds::math::CGaussianFunc< T, N >::CGaussianFunc | ( | double | dWeight, |
| const tVector & | Mean, | ||
| const tVector & | Cov | ||
| ) |
Constructor.
| mds::math::CGaussianFunc< T, N >::~CGaussianFunc | ( | ) |
Destructor.
| void CGaussianFunc::computeInverse | ( | ) |
Normalizes the covariance matrix and computes its determinant and inverse.
| tVector& mds::math::CGaussianFunc< T, N >::getCov | ( | ) |
Returns diagonal covariance matrix of the gaussian function.
| const tVector& mds::math::CGaussianFunc< T, N >::getCov | ( | ) | const |
| T mds::math::CGaussianFunc< T, N >::getCov | ( | mds::tSize | i | ) | const |
Returns element of the diagonal covariance matrix.
| tVector& mds::math::CGaussianFunc< T, N >::getMean | ( | ) |
Returns component mean.
| const tVector& mds::math::CGaussianFunc< T, N >::getMean | ( | ) | const |
| T mds::math::CGaussianFunc< T, N >::getMean | ( | mds::tSize | i | ) | const |
Returns component mean.
| tSize mds::math::CGaussianFunc< T, N >::getNumOfDimensions | ( | ) | const |
Returns the number od dimensions.
| double CGaussianFunc::getValue | ( | const tVector & | x | ) |
Returns value of the gaussian function.
| double mds::math::CGaussianFunc< T, N >::getWeight | ( | ) | const |
Returns weight of the mixture component.
| double mds::math::CGaussianFunc< T, N >::getWeightedValue | ( | const tVector & | x | ) |
Returns weighted value of the gaussian function.
| void mds::math::CGaussianFunc< T, N >::setCov | ( | const tVector & | Cov | ) |
Sets diagonal covariance matrix of the gaussian function.
| void mds::math::CGaussianFunc< T, N >::setCov | ( | mds::tSize | i, |
| T | Value | ||
| ) |
Directly sets element of the diagonal covariance matrix.
| void mds::math::CGaussianFunc< T, N >::setMean | ( | const tVector & | Mean | ) |
Sets mean of the gaussian function.
| void mds::math::CGaussianFunc< T, N >::setMean | ( | mds::tSize | i, |
| T | Value | ||
| ) |
Sets mean of the gaussian function.
| static void mds::math::CGaussianFunc< T, N >::setMinCovariance | ( | T | Value | ) | [static] |
Sets minimal allowed covariance value in the matrix.
| void mds::math::CGaussianFunc< T, N >::setWeight | ( | double | dWeight | ) |
Sets weight of the component.
bool mds::math::CGaussianFunc< T, N >::m_bModified [protected] |
Helper flag;.
tVector mds::math::CGaussianFunc< T, N >::m_Cov [protected] |
Diagonal covariance matrix and its inverse.
tVector mds::math::CGaussianFunc< T, N >::m_CovDet [protected] |
Determinant of the covariance matrix.
double mds::math::CGaussianFunc< T, N >::m_dWeight [protected] |
Weight of the gaussian function.
tVector mds::math::CGaussianFunc< T, N >::m_InvCov [protected] |
tVector mds::math::CGaussianFunc< T, N >::m_Mean [protected] |
Mean value.
T CGaussianFunc::m_MinCovariance = T(GaussianFunc::DEFAULT_MIN_COVARIANCE) [static, protected] |
Minimal allowed covariance value.
1.7.6.1