element_sim {ClustAssess}R Documentation

The Element-Centric Clustering Similarity

Description

Calculates the average element-centric similarity between two Clustering objects.

Usage

element_sim(clustering1, clustering2)

Arguments

clustering1

The first Clustering.

clustering2

The second Clustering.

Value

The average element-wise similarity between the two Clusterings.

Examples

km.res = kmeans(mtcars, 3)$cluster
km.clustering = create_clustering(km.res)
hc.res = hclust(dist(mtcars))
hc.clustering = create_clustering(hc.res)
element_sim(km.clustering, hc.clustering)

[Package ClustAssess version 0.1.1 Index]