checkGmm: checkGmm

Description Usage Arguments Value Author(s) See Also Examples

View source: R/functions.R

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 29, 2017, 11:05 a.m.

Search within the patchPlot package
Search all R packages, documentation and source code