integration {varclust} | R Documentation |
Computes integration and acontamination of the clustering
Description
Integartion and acontamination are measures of the quality of a clustering
with a reference to a true partition. Let be the
data set,
be a partition into clusters
(true
partition) and
be a partition into clusters
.
Then for cluster
integration is eqaul to:
The for which the value is
maximized is called the integrating cluster of
. Then the
integration for the whole clustering equals is
.The acontamination is defined by:
where is the integrating cluster for
. Then the
acontamination for the whole dataset is
Usage
integration(group, true_group)
Arguments
group |
A vector, first partition. |
true_group |
A vector, second (reference) partition. |
Value
An array containing values of integration and acontamination.
References
M. Sołtys. Metody analizy skupień. Master’s thesis, Wrocław University of Technology, 2010
Examples
sim.data <- data.simulation(n = 20, SNR = 1, K = 2, numb.vars = 50, max.dim = 2)
true_segmentation <- rep(1:2, each=50)
mlcc.fit <- mlcc.reps(sim.data$X, numb.clusters = 2, max.dim = 2, numb.cores=1)
integration(mlcc.fit$segmentation, true_segmentation)