public interface IDistanceFunction<T>
Modifier and Type | Method and Description |
---|---|
float |
getDistance(T object1,
T object2)
Distance should be large if objects are "far away" from each other, i.e.
|
float |
getNativeComparison(T object1,
T object2)
Calculates native comparison index between two objects (distance or similarity).
|
float getDistance(T object1, T object2) throws Exception
object1
- object2
- Exception
float getNativeComparison(T object1, T object2) throws Exception
getDistance(Object, Object)
.object1
- object2
- Exception
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.