Click or drag to resize

IndexPartitionDunnIndex Method

Computes the Dunn index to assess the quality of a given partition of the specified data.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public static double DunnIndex(
	DoubleMatrix data,
	IndexPartition<double> partition
)

Parameters

data
Type: Novacta.AnalyticsDoubleMatrix
The data whose rows represent the available observations.
partition
Type: Novacta.AnalyticsIndexPartitionDouble
The data partition to evaluate.

Return Value

Type: Double
The Dunn Index for the given data partition.
Exceptions
ExceptionCondition
ArgumentNullExceptiondata.
-or-
partition is null.
ArgumentException A part in partition contains a position which is not valid as a row index of data.
Remarks

Each column of data is associated to one of the variables under study, while its rows are associated to the individuals. The partition is intended to define parts which contains row indexes valid for data.

The Dunn index aims to identify dense and well-separated clusters. It is defined as the ratio between the minimal inter-cluster distance to maximal intra-cluster distance. Since this criterion seeks clusters with high intra-cluster similarity and low inter-cluster similarity, clusters with high Dunn index are more desirable.

This method applies Euclidean distances. The intra-cluster distance is implemented as the maximal distance between any pair of elements in the cluster. The inter-cluster distance is implemented as the single linkage, i.e. the shortest distance between pairs of individuals belonging to different clusters.

See Also