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