Serializable
CanberraDistance
, ChebyshevDistance
, EarthMoversDistance
, EuclideanDistance
, ManhattanDistance
public interface DistanceMeasure extends Serializable
Modifier and Type | Method | Description |
---|---|---|
double |
compute(double[] a,
double[] b) |
Compute the distance between two n-dimensional vectors.
|
double compute(double[] a, double[] b) throws MathIllegalArgumentException
The two vectors are required to have the same dimension.
a
- the first vectorb
- the second vectorMathIllegalArgumentException
- if the array lengths differ.Copyright © 2016–2018 Hipparchus.org. All rights reserved.