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