Learn R Programming

TargetScore (version 1.10.0)

sort_components: Sort mixture components in increasing order of averaged means (Internal function)

Description

Sort Gaussian mixture components with model paramters in increasing order of averaged means of d variables.

Usage

sort_components(model)

Arguments

model
A list containing trained parameters of the Baysian GMM (see Value section in vbgmm).

Value

  • VB-GMM model list in increasing order of averaged means.

See Also

vbgmm

Examples

Run this code
tmp <- vbgmm(c(rnorm(100,mean=2), rnorm(100,mean=3)), tol=1e-3)
tmp$mu

Run the code above in your browser using DataLab