Learn R Programming

fossil (version 0.4.0)

rclust.dist: Relational Clustering

Description

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.

See Also

To cluster the data, use the function rclust; see as well rclust.weights, rclust.null

Examples

Run this code
# NOT RUN {
#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)
# }

Run the code above in your browser using DataLab