Click or drag to resize

CachedDissimilarityMetricTInstance Class

Inheritance Hierarchy
SystemObject
  AglomeraCachedDissimilarityMetricTInstance

Namespace:  Aglomera
Assembly:  Aglomera (in Aglomera.dll) Version: 1.1.0
Syntax
C#
public class CachedDissimilarityMetric<TInstance> : IDissimilarityMetric<TInstance>, 
	IDisposable
Request Example View Source

Type Parameters

TInstance

The CachedDissimilarityMetricTInstance type exposes the following members.

Constructors
  NameDescription
Public methodCachedDissimilarityMetricTInstance
Creates a new CachedDissimilarityMetricTInstance according to the given base dissimilarity metric and the known set of instances.
Top
Methods
  NameDescription
Public methodCalculate
Calculates the distance between two instances according to this metric.
Public methodDispose
Releases all resources used by the CachedDissimilarityMetricTInstance
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
This class is useful to use during the execution of AgglomerativeClusteringAlgorithmTInstance as many ILinkageCriterionTInstance classes rely on pair-wise dissimilarities between the instances. In that sense, the set of instances has to be known beforehand and must not change and no verification is done in Calculate(TInstance, TInstance). This means that if cluster centroids are used to measure dissimilarities, they have to be included in the original set, otherwise the value will not be present in the cache.
See Also