|
libcrn
3.9.5
A document image processing library
|
Multivariate Gaussian distribution. More...
#include <CRNMultivariateGaussianPDF.h>
Inheritance diagram for crn::MultivariateGaussianPDF:
Collaboration diagram for crn::MultivariateGaussianPDF:Public Member Functions | |
| MultivariateGaussianPDF (const MatrixDouble &mu, const SquareMatrixDouble &sigma) | |
| Constructor. More... | |
| MultivariateGaussianPDF (const MultivariateGaussianPDF &)=default | |
| MultivariateGaussianPDF (MultivariateGaussianPDF &&)=default | |
| virtual | ~MultivariateGaussianPDF () override |
| Destructor. More... | |
| MultivariateGaussianPDF & | operator= (const MultivariateGaussianPDF &)=default |
| MultivariateGaussianPDF & | operator= (MultivariateGaussianPDF &&)=default |
| size_t | GetDimension () const noexcept |
| Returns the number of features. More... | |
| void | SetDimension (size_t d) noexcept |
| Sets the number of features. More... | |
| const MatrixDouble & | GetMean () const |
| Returns the mean of a given density function. More... | |
| void | SetMean (const MatrixDouble &obj) |
| Sets the mean of a given density function. More... | |
| const SquareMatrixDouble & | GetVariance () const |
| Returns the variance of a given density function. More... | |
| void | SetVariance (const SquareMatrixDouble &obj) |
| Sets the variance of a given density function. More... | |
| double | ValueAt (const MatrixDouble &x) const |
| Evaluates a pattern. More... | |
| double | ValueAt (const std::vector< double > &x) const |
| Evaluates a pattern. More... | |
| bool | IsValid () const |
| Check if PDF is valid (with finite values) More... | |
| String | ToString () const |
| Dumps a summary to a string. More... | |
Public Member Functions inherited from crn::Object | |
| virtual | ~Object ()=default |
Multivariate Gaussian distribution.
Model for multivariate Gaussian probability distribution function
Definition at line 41 of file CRNMultivariateGaussianPDF.h.
| MultivariateGaussianPDF::MultivariateGaussianPDF | ( | const MatrixDouble & | mu, |
| const SquareMatrixDouble & | sigma | ||
| ) |
Constructor.
Constructor
| [in] | mu | the mean pattern |
| [in] | sigma | the covariance matrix |
Definition at line 40 of file CRNMultivariateGaussianPDF.cpp.
|
default |
|
default |
|
overridevirtual |
|
inlinenoexcept |
Returns the number of features.
Definition at line 56 of file CRNMultivariateGaussianPDF.h.
|
inline |
Returns the mean of a given density function.
Definition at line 61 of file CRNMultivariateGaussianPDF.h.
|
inline |
Returns the variance of a given density function.
Definition at line 66 of file CRNMultivariateGaussianPDF.h.
| bool MultivariateGaussianPDF::IsValid | ( | ) | const |
Check if PDF is valid (with finite values)
Check if PDF is valid (with finite values)
Definition at line 201 of file CRNMultivariateGaussianPDF.cpp.
|
default |
|
default |
|
noexcept |
Sets the number of features.
Set the number of features
| [in] | d | the new dimension |
Definition at line 61 of file CRNMultivariateGaussianPDF.cpp.
| void MultivariateGaussianPDF::SetMean | ( | const MatrixDouble & | obj | ) |
Sets the mean of a given density function.
Set the mean of a given density function
| [in] | obj | the new mean pattern |
Definition at line 75 of file CRNMultivariateGaussianPDF.cpp.
| void MultivariateGaussianPDF::SetVariance | ( | const SquareMatrixDouble & | obj | ) |
Sets the variance of a given density function.
Set the variance of a given density function
| [in] | obj | the new covariance matrix |
Definition at line 85 of file CRNMultivariateGaussianPDF.cpp.
| String MultivariateGaussianPDF::ToString | ( | ) | const |
Dumps a summary to a string.
Dumps a summary to a string
Definition at line 184 of file CRNMultivariateGaussianPDF.cpp.
| double MultivariateGaussianPDF::ValueAt | ( | const MatrixDouble & | x | ) | const |
Evaluates a pattern.
Evaluate a pattern
| ExceptionDimension |
| [in] | x | the pattern to evaluate |
Definition at line 101 of file CRNMultivariateGaussianPDF.cpp.
| double MultivariateGaussianPDF::ValueAt | ( | const std::vector< double > & | x | ) | const |
Evaluates a pattern.
Evaluate a pattern
| ExceptionDimension |
| [in] | x | the pattern to evaluate |
Definition at line 140 of file CRNMultivariateGaussianPDF.cpp.
1.8.6