Learn R Programming

fossil (version 0.4.0)

rclust.weights: Relational Clustering

Description

A method to cluster a number of samples using a relational (dissimila

Usage

rclust.weights(groups, dist)

Arguments

groups

cluster identity vector

dist

original pairwise distance matrix

Value

A matrix of of size n (samples) by c (groups).

Details

This function creates an n by c sized matrix, where n is the number of samples and c is the number of groups, of the average distances for each sample from itself to all the members of another group (\(c_{i}\)).

See Also

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

Examples

Run this code
# NOT RUN {
data(fdata.mat)
fd.dist <- dino.dist(fdata.mat)
fd.clust <- rclust(fd.dist, 2)
rclust.weights(fd.clust, fd.dist)
# }

Run the code above in your browser using DataLab