Click or drag to resize

ClusterAnalysisGetDistances Method

Computes the vector of distances between all possible object pairs, using the current distance delegate.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
protected DoubleVector GetDistances(
	DoubleMatrix data
)

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:
C#
(1,2), (1,3), ..., (1,n), (2,3), ..., (2,n), ..., ..., (n-1,n)
See Also