Computes the maximum (Chebychev) distance between two data sets.
NMath (in NMath.dll) Version: 7.4
public static double MaximumDistance(
Public Shared Function MaximumDistance (
data1 As DoubleVector,
data2 As DoubleVector
) As Double
static double MaximumDistance(
static member MaximumDistance :
data1 : DoubleVector *
data2 : DoubleVector -> float
- data1 DoubleVector
- The first data set.
- data2 DoubleVector
- The second data set.
The distance between data1
This distance is computed as:
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.