Description Usage Arguments Details Value Author(s) Examples
Calculates the diameter (maximum within-cluster dissimilarity) of all clusters in a partition, as well as the average diameter across all clusters.
1 2 3 4 5 |
x |
a vector of integers or an object of class ‘clustering’, ‘partition’, ‘partana’, or ‘stride’ |
dist |
an object of class ‘dist’ from |
digits |
the number of significant digits reported in the output |
... |
ancillary arguments to the print function |
disdiam is a cluster validation routine, and calculates the diameter (maximum within-cluster dissimilarity) of each cluster, as well as the average diameter of across all clusters of size greater than one.
A list with components:
diameters |
a data.frame with clusters as rows, and cluster ID, cluster size, and diameter as cols |
mean |
the weighted mean diameter of clusters of size greater than one. The mean is weighted for cluster size. |
David W. Roberts droberts@montana.edu
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.