enum cv::ml::EM::Types

Overview

Type of covariation matrices. Moreā€¦

#include <ml.hpp>

enum Types
{
    COV_MAT_SPHERICAL =0,
    COV_MAT_DIAGONAL  =1,
    COV_MAT_GENERIC   =2,
    COV_MAT_DEFAULT   =COV_MAT_DIAGONAL,
};

Detailed Documentation

Type of covariation matrices.

Enum Values

COV_MAT_SPHERICAL

A scaled identity matrix \(\mu_k * I\). There is the only parameter \(\mu_k\) to be estimated for each matrix. The option may be used in special cases, when the constraint is relevant, or as a first step in the optimization (for example in case when the data is preprocessed with PCA). The results of such preliminary estimation may be passed again to the optimization procedure, this time with covMatType= EM::COV_MAT_DIAGONAL.

COV_MAT_DIAGONAL

A diagonal matrix with positive diagonal elements. The number of free parameters is d for each matrix. This is most commonly used option yielding good estimation results.

COV_MAT_GENERIC

A symmetric positively defined matrix. The number of free parameters in each matrix is about \(d^2/2\). It is not recommended to use this option, unless there is pretty accurate initial estimation of the parameters and/or a huge number of training samples.