rclust.weights {fossil} | R Documentation |
A method to cluster a number of samples using a relational (dissimila
rclust.weights(groups, dist)
groups |
cluster identity vector |
dist |
original pairwise distance matrix |
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}
).
A matrix of of size n (samples) by c (groups).
Matthew Vavrek
To cluster the data, use the function rclust
; see as well rclust.dist
, rclust.null
data(fdata.mat)
fd.dist <- dino.dist(fdata.mat)
fd.clust <- rclust(fd.dist, 2)
rclust.weights(fd.clust, fd.dist)