public class EuclideanDistance extends Object implements IDistanceFunction<double[]>
| Constructor and Description |
|---|
EuclideanDistance() |
| Modifier and Type | Method and Description |
|---|---|
float |
getDistance(double[] object1,
double[] object2)
Distance should be large if objects are "far away" from each other, i.e.
|
float |
getNativeComparison(double[] o1,
double[] o2)
Calculates native comparison index between two objects (distance or similarity).
|
String |
toString() |
public float getDistance(double[] object1,
double[] object2)
throws Exception
IDistanceFunctiongetDistance in interface IDistanceFunction<double[]>Exceptionpublic float getNativeComparison(double[] o1,
double[] o2)
throws Exception
IDistanceFunctionIDistanceFunction.getDistance(Object, Object).getNativeComparison in interface IDistanceFunction<double[]>ExceptionCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.