Skip to content

ml_EM_Types

mlclassOpenCV 5.0.0
import { ml_EM_Types } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSml_EM_Types
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Type of covariation matrices

Constructors and members

static 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_SPHERICAL: ml_EM_TypesValue<0>,

static COV_MAT_DIAGONAL

A symmetric positively defined matrix. The number of free

COV_MAT_DIAGONAL: ml_EM_TypesValue<1>,

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

COV_MAT_GENERIC: ml_EM_TypesValue<2>,

static COV_MAT_DEFAULT

cov mat default constant (COV_MAT_DIAGONAL), defined by OpenCV for cv::ml::EM.

COV_MAT_DEFAULT: ml_EM_TypesValue<1>

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.