| ClusterAnalysisGetDistances Method |
Computes the vector of distances between all possible object
pairs, using the current distance delegate.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected DoubleVector GetDistances(
DoubleMatrix data
)
Protected Function GetDistances (
data As DoubleMatrix
) As DoubleVector
protected:
DoubleVector^ GetDistances(
DoubleMatrix^ data
)
member GetDistances :
data : DoubleMatrix -> DoubleVector
Parameters
- data DoubleMatrix
-
A matrix of data. Each row in the matrix represents an object
to be clustered.
Return Value
DoubleVector
The distances between all pairs of rows in
data.
Remarks For
n objects, the distance vector is of length
(n-1)(n/2), with distances arranged in the order:
(1,2), (1,3), ..., (1,n), (2,3), ..., (2,n), ..., ..., (n-1,n)
See Also