Click or drag to resize

CentroidLinkageTInstance Class

Implements the centroid linkage clustering method, i.e., returns the distance between the centroid for each cluster (a mean vector).
Inheritance Hierarchy
SystemObject
  Aglomera.LinkageCentroidLinkageTInstance

Namespace:  Aglomera.Linkage
Assembly:  Aglomera (in Aglomera.dll) Version: 1.1.0
Syntax
C#
public class CentroidLinkage<TInstance> : ILinkageCriterion<TInstance>
where TInstance : Object, IComparable<TInstance>
Request Example View Source

Type Parameters

TInstance
The type of instance considered.

The CentroidLinkageTInstance type exposes the following members.

Constructors
  NameDescription
Public methodCentroidLinkageTInstance
Creates a new CentroidLinkageTInstance with given dissimilarity metric and centroid function.
Top
Properties
  NameDescription
Public propertyDissimilarityMetric
Gets the metric used to measure the dissimilarity / distance between cluster elements according to this linkage criterion.
Top
Methods
  NameDescription
Public methodCalculate
Calculates the distance / dissimilarity between the two given clusters according to this linkage criterion.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Remarks
Centroid linkage is equivalent to AverageLinkageTInstance of all pairs of documents from different clusters. Thus, the difference between average and centroid clustering is that the former considers all pairs of documents in computing average pairwise similarity, whereas centroid clustering excludes pairs from the same cluster [1]. References: [1] - https://nlp.stanford.edu/IR-book/html/htmledition/centroid-clustering-1.html.
See Also