Click or drag to resize

DistanceMaximumDistance Method

Computes the maximum (Chebychev) distance between two data sets.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double MaximumDistance(
	DoubleVector data1,
	DoubleVector data2
)

Parameters

data1  DoubleVector
The first data set.
data2  DoubleVector
The second data set.

Return Value

Double
The distance between data1 and data2.
Exceptions
ExceptionCondition
MismatchedSizeException Thrown if the given data sets do not have equal lengths.
Remarks
This distance is computed as:
C#
distance( x, y ) = maximum( |xi - yi| )
This distance measure may be appropriate in cases when you want to define two objects as different if they differ on any one of the dimensions.
Missing values are allowed. Pairs of elements are excluded from the distance measure when their comparison returns NaN. If all pairs are excluded, NaN is returned for the distance measure.
See Also