getClusDist: Calculate distance of two hierarchical clustering matrix

Description Usage Arguments Value Examples

Description

Calculate distance of two hierarchical clustering matrix

Usage

1
getClusDist(clustering1, clustering2)

Arguments

clustering1

The first clustering as a branch component

clustering2

The second clustering as a branch component

Value

distance between 0 and square root of 2

Examples

1
2
3
4
5
6
7
data <- rbind(matrix(rnorm(100, mean = 10, sd = 2), nrow = 50),
              matrix(rnorm(100, mean = 0, sd = 1), nrow = 50),
              matrix(rnorm(100, mean = -10, sd = 3), nrow = 50)
              )
clust1 <- stats::hclust(dist(data),method='complete')
clust2 <- stats::hclust(dist(data),method='single')
clusDist(clust1,clust2)

rwoldford/trec documentation built on May 15, 2019, 6:29 p.m.