Click or drag to resize

ClusterAnalysisCopheneticDistances Property

Gets the vector of cophenetic distances between all possible object pairs.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleVector CopheneticDistances { get; }

Property Value

DoubleVector
Remarks
The cophenetic distance between two objects is defined to be the intergroup distance when the objects are first combined into a single cluster in the linkage tree.
The format is the same as the distance vector returned by Distances.
The correlation between the original Distances and the CopheneticDistances is sometimes taken as a measure of appropriateness of a cluster analysis relative to the original data:
C#
ClusterAnalysis ca = new ClusterAnalysis( data );
double r = NMathFunctions.Correlation( ca.Distances, ca.CopheneticDistances );
See Also