public class EuclideanDistance extends java.lang.Object implements DistanceMeasure
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serializable version identifier.
|
| Constructor and Description |
|---|
EuclideanDistance() |
| Modifier and Type | Method and Description |
|---|---|
double |
compute(double[] a,
double[] b)
Compute the distance between two n-dimensional vectors.
|
private static final long serialVersionUID
public double compute(double[] a,
double[] b)
The two vectors are required to have the same dimension.
compute in interface DistanceMeasurea - the first vectorb - the second vectorCopyright (c) 2003-2015 Apache Software Foundation