public class AtomEnvironmentsDistance extends Object implements IDistanceFunction<AtomEnvironmentList>
| Constructor and Description |
|---|
AtomEnvironmentsDistance() |
| Modifier and Type | Method and Description |
|---|---|
float |
getDistance(AtomEnvironmentList object1,
AtomEnvironmentList object2)
Calls
AtomEnvironmentList.hellinger(AtomEnvironmentList) and divides on 2 to
get it in (0,1) range. |
float |
getNativeComparison(AtomEnvironmentList object1,
AtomEnvironmentList object2)
Calculates native comparison index between two objects (distance or similarity).
|
String |
toString() |
public float getDistance(AtomEnvironmentList object1, AtomEnvironmentList object2) throws Exception
AtomEnvironmentList.hellinger(AtomEnvironmentList) and divides on 2 to
get it in (0,1) range.
1 - objects are same 0 - objects are different
getDistance in interface IDistanceFunction<AtomEnvironmentList>Exceptionpublic float getNativeComparison(AtomEnvironmentList object1, AtomEnvironmentList object2) throws Exception
IDistanceFunctionIDistanceFunction.getDistance(Object, Object).getNativeComparison in interface IDistanceFunction<AtomEnvironmentList>ExceptionCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.