| diameter {gclus} | R Documentation |
Computes measures of cluster heterogeneity of 2-d data,
where x and y give the object coordinates.
diameter(x, y, ...) star(x, y, ...) km2(x,y) gtot(x,y, ...) gave(x,y, ...)
x |
is a numeric vector. |
y |
is a numeric vector. |
... |
are passed to dist. |
diameter computes the cluster diameter- the maximum distance
between objects.
star computes the cluster star distance- the smallest
total distance from one object to another.
km2 computes the kmeans distance.
gtot computes the sum of all inter-object distances.
gave computes the per-object average of all
inter-object distances.
The cluster measure is returned.
Catherine B. Hurley
See Gordon, A. D. (1999).``Classification''. Second Edition. London: Chapman and Hall / CRC
colpairs, cpairs, order.single
x <- runif(20) y <- runif(20) diameter(x,y)