Function to compute a matrix of average distances within and between clusters.

distClust(d, nobj.cluster, id.cluster)

Arguments

d

an object of class "dist" containing the distances between objects.

nobj.cluster

a numeric vector containing the numbers of objects per cluster.

id.cluster

a numeric vector for identification of the objects per cluster.

Value

A squared matrix containing distances within (diagonal) and between (off-diagonal) clusters.

Author

Anderson Rodrigo da Silva <anderson.agro@hotmail.com>

See also