Learn R Programming

gmgm (version 1.1.2)

merge_comp: Merge mixture components of a Gaussian mixture model

Description

This function merges mixture components of a Gaussian mixture model (Zhang et al., 2003).

Usage

merge_comp(gmm, comp = seq_along(gmm$alpha))

Value

The gmm object after merging the mixture components.

Arguments

gmm

An object of class gmm.

comp

An integer vector containing the indexes of the merged mixture components (by default all the components of gmm).

References

Zhang, Z., Chen, C., Sun, J. and Chan, K. L. (2003). EM algorithms for Gaussian mixtures with split-and-merge operation. Pattern Recognition, 36(9):1973--1983.

See Also

split_comp

Examples

Run this code
data(gmm_body)
gmm_1 <- merge_comp(gmm_body, c(1, 2))

Run the code above in your browser using DataLab