cor_FM_index: Correlation of FM_index for some k

Description Usage Arguments Value See Also Examples

View source: R/cor.dendlist.R

Description

Calculates the FM_index Correlation for some k.

Usage

1
cor_FM_index(dend1, dend2, k, ...)

Arguments

dend1

a dendrogram.

dend2

a dendrogram.

k

an integer (number of clusters to cut the tree)

...

not used.

Value

A correlation value between 0 to 1 (almost identical clusters for some k)

See Also

FM_index, cor.dendlist, Bk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
set.seed(23235)
ss <- sample(1:150, 10)
hc1 <- iris[ss, -5] %>%
  dist() %>%
  hclust("com")
hc2 <- iris[ss, -5] %>%
  dist() %>%
  hclust("single")
dend1 <- as.dendrogram(hc1)
dend2 <- as.dendrogram(hc2)

cor_FM_index(dend1, dend2, k = 2)
cor_FM_index(dend1, dend2, k = 3)
cor_FM_index(dend1, dend2, k = 4)

dendextend documentation built on May 9, 2021, 1:06 a.m.