public class EarthMoversDistance extends Object implements DistanceMeasure
Constructor and Description |
---|
EarthMoversDistance() |
public double compute(double[] a, double[] b)
The two vectors are required to have the same dimension.
compute
in interface DistanceMeasure
a
- the first vectorb
- the second vectorCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.