element_sim_elscore {ClustAssess}R Documentation

The Element-Centric Clustering Similarity for each Element

Description

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

Usage

element_sim_elscore(clustering1, clustering2)

Arguments

clustering1

The first Clustering.

clustering2

The second Clustering.

Value

Vector of element-centric similarity between the two clusterings for each element.

References

Gates, A. J., Wood, I. B., Hetrick, W. P., & Ahn, Y. Y. (2019). Element-centric clustering comparison unifies overlaps and hierarchy. Scientific reports, 9(1), 1-13. https://doi.org/10.1038/s41598-019-44892-y

Examples

km.res = kmeans(iris[,1:4], centers=8)$cluster
km.clustering = create_clustering(km.res)
hc.res = hclust(dist(iris[,1:4]))
hc.clustering = create_clustering(hc.res)
element_sim_elscore(km.clustering, hc.clustering)

[Package ClustAssess version 0.1.1 Index]