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