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
IDistanceFunction
getDistance
in interface IDistanceFunction<double[]>
Exception
public float getNativeComparison(double[] o1, double[] o2) throws Exception
IDistanceFunction
IDistanceFunction.getDistance(Object, Object)
.getNativeComparison
in interface IDistanceFunction<double[]>
Exception
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.