# Enum EM.Types

Type of covariation matrices

**Namespace**: OpenCvSharp

**Assembly**: OpenCvSharp.dll

##### Syntax

`public enum Types`

### Fields

Name | Description |
---|---|

CovMatDefault | |

CovMatDiagonal | 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. |

CovMatGeneric | A symmetric positively defined matrix. The number of free parameters in each matrix is about \f$d^2/2\f$. 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. |

CovMatSpherical | A scaled identity matrix \f$\mu_k * I\f$. There is the only parameter \f$\mu_k\f$ 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. |