Learn R Programming

pandemonium (version 0.2.4)

getClusterDists: Compute cluster distance summaries

Description

The returned tibble contains the id of the cluster pairs, with benchmark distance (d1), minimum (d2) and maximum (d3) distances between any points in the two clusters.

Usage

getClusterDists(dmat, groups, benchmarks)

Value

data frame with distance information

Arguments

dmat

distance matrix

groups

groups resulting from clustering

benchmarks

data frame with benchmark id and group number

Examples

Run this code
dists <- getDists(Bikes$space1,"euclidean")
fit <- stats::hclust(dists, "ward.D2")
groups <- stats::cutree(fit, k = 4)
bm <- getBenchmarkInformation(as.matrix(dists), groups)
getClusterDists(as.matrix(dists), groups, bm)

Run the code above in your browser using DataLab