ClustQual {MGMM}R Documentation

Cluster Quality

Description

Evaluates cluster quality. Returns the following metrics:

Usage

ClustQual(fit)

Arguments

fit

Object of class mix.

Value

List containing the cluster quality metrics.

See Also

See ChooseK for using quality metrics to choose the cluster number.

Examples

set.seed(100)

# Data generation
mean_list = list(
c(2, 2, 2),
c(-2, 2, 2),
c(2, -2, 2),
c(2, 2, -2)
)

data <- rGMM(n = 500, d = 3, k = 4, means = mean_list)
fit <- FitGMM(data, k = 4)

# Clustering quality
cluster_qual <- ClustQual(fit)

[Package MGMM version 1.0.1.1 Index]