checkGmm

Share:

Description

Checks that the parametrized GMM objects has the expected structure.

Usage

1
checkGmm(obj)

Arguments

obj

GMM object to be checked (see VBmix::newGmm for format definition)

Value

TRUE if the correct structure is found, FALSE else.

Author(s)

Pierrick Bruneau

See Also

plotGmmOverlay

Examples

1
2
3
4
5
6
7
# set a gaussian mixture model 
gaussmod <- list()
gaussmod$w <- c(0.5, 0.5)
gaussmod$mean <- list(c(-3,0), c(3,0))
gaussmod$cov <- list(diag(2), diag(2))

checkGmm(gaussmod)