Learn R Programming

hybridHclust (version 1.0-5)

get.distances: Extract Distances From Mutual Cluster

Description

Extract the within-cluster distances for each mutual cluster

Usage

get.distances(x)

Arguments

x
An object of class ‘mutualCluster’, returned by the ‘mutualCluster’ function.

Value

A list of distances. For mutual custers of size 2, the corresponding element is a 1x1 matrix. For larger mutual custers, the corresponding element is an object of type ‘dist’.

See Also

mutualCluster,print.mutualCluster

Examples

Run this code
x <- cbind(c(-1.4806,1.5772,-0.9567,-0.92,-1.9976,-0.2723,-0.3153),
           c(-0.6283,-0.1065,0.428,-0.7777,-1.2939,-0.7796,0.012))
mc1 <- mutualCluster(x)
get.distances(mc1)

Run the code above in your browser using DataLab