checkGmm: checkGmm

Description Usage Arguments Value Author(s) See Also Examples

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)

patchPlot documentation built on May 1, 2019, 8:20 p.m.