Provides a distance matrix intra- and inter-group average distances based on a clustering solution and a dissimilarity matrix.
Usage
rclust.dist(groups, dist)
Arguments
groups
cluster identity vector
dist
original pairwise distance matrix
Value
A matrix \(c\) by \(c\) in size, where \(c\) is the number of clusters
Details
This function calculates a distance matrix for each cluster, giving the average within group pairwise distance and the average between group pairwise distance.
# NOT RUN {#a null solution for the fdata example data setdata(fdata.mat)
fd.dist <- dino.dist(fdata.mat)
fd.clust <- rclust(fd.dist, 2)
rclust.dist(fd.clust, fd.dist)
# }