Click or drag to resize

CentroidLinkageTInstanceCalculate Method

Calculates the distance / dissimilarity between the two given clusters according to this linkage criterion.

Namespace:  Aglomera.Linkage
Assembly:  Aglomera (in Aglomera.dll) Version: 1.1.0
Syntax
C#
public double Calculate(
	Cluster<TInstance> cluster1,
	Cluster<TInstance> cluster2
)
Request Example View Source

Parameters

cluster1
Type: AglomeraClusterTInstance
The first cluster.
cluster2
Type: AglomeraClusterTInstance
The second cluster.

Return Value

Type: Double
A value corresponding to the distance / dissimilarity between cluster1 and cluster2, according to this linkage criterion.

Implements

ILinkageCriterionTInstanceCalculate(ClusterTInstance, ClusterTInstance)
See Also