Home   >   User Resources   >   Online Help   >   apaClustering.Evaluation.InternalMetrics
 

 

Function index Version 3.0.0

apaClustering.Evaluation.InternalMetrics(DataMatrix, ClusteringResult)

Excel=apaClustering.Evaluation.InternalMetrics(DataMatrix, ClusteringResult)

Result

Evaluates the assignments of a clustering algorithm: various internal metrics.

Syntax

DataMatrix: r x c data matrix

ClusteringResult: r x 1 vector of cluster labels. The labels can be any integer values; points labelled -1 (noise, e.g. from apaClustering.DBSCAN) are excluded.

Remarks

Returns a table with the measures WCSS (within-cluster sum of squares), Silhouette, Davies-Bouldin, Calinski-Harabasz, BCSS (between-cluster sum of squares), Dunn and Connectivity. The column Global contains the measure for the whole clustering; WCSS and Silhouette are also reported per cluster, in columns headed with the cluster labels in ascending order. Euclidean distances are used throughout.

The silhouette value of a point is (b - a) / max(a, b), where a is the mean distance to the other members of its own cluster and b the mean distance to the members of the nearest other cluster. Points in single-member clusters have a silhouette value of 0. Connectivity sums 1/j over the j = 1, ..., 10 nearest neighbours of each point that belong to a different cluster; lower values are better.