powered by
Computes clustering coefficients from cluster, where x and y give the object coordinates.
cluster
x
y
ac(x, y, ...) sil(x, y, groups, ...)
is a numeric vector.
is a vector of group memberships, used by sil only.
sil
are passed to agnes in ac and to dist in sil.
agnes
ac
dist
The clustering coefficient is returned.
ac - Computes clustering coefficient from agnes{cluster}.
agnes{cluster}
sil - Computes the silhouette coefficient from from package cluster.
Kaufman, L. and Rousseeuw, P.J. (1990). Finding Groups in Data: An Introduction to Cluster Analysis . Wiley, New York.
agnes, silhouette, dist.
silhouette
# NOT RUN { x <- runif(20) y <- runif(20) g <- rep(c("a","b"),10) ac(x,y) sil(x,y,g) # }
Run the code above in your browser using DataLab