rclust.dist {fossil} | R Documentation |
Provides a distance matrix intra- and inter-group average distances based on a clustering solution and a dissimilarity matrix.
rclust.dist(groups, dist)
groups |
cluster identity vector |
dist |
original pairwise distance matrix |
This function calculates a distance matrix for each cluster, giving the average within group pairwise distance and the average between group pairwise distance.
A matrix c
by c
in size, where c
is the number of clusters
Matthew Vavrek
To cluster the data, use the function rclust
; see as well rclust.weights
, rclust.null
#a null solution for the fdata example data set
data(fdata.mat)
fd.dist <- dino.dist(fdata.mat)
fd.clust <- rclust(fd.dist, 2)
rclust.dist(fd.clust, fd.dist)