Gets the vector of cophenetic distances between all possible object
pairs.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public DoubleVector CopheneticDistances { get; } |
| Visual Basic (Declaration) |
|---|
Public ReadOnly Property CopheneticDistances As DoubleVector |
| Visual C++ |
|---|
public: property DoubleVector^ CopheneticDistances { DoubleVector^ get (); } |
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:
CopyC#
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:
ClusterAnalysis ca = new ClusterAnalysis( data ); double r = StatsFunctions.Correlation( ca.Distances, ca.CopheneticDistances );