Learn R Programming

patchPlot (version 0.1.5)

checkGmm: checkGmm

Description

Checks that the parametrized GMM objects has the expected structure.

Usage

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.

See Also

plotGmmOverlay

Examples

Run this code
# 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)

Run the code above in your browser using DataLab