jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.unguarded
Interface UnguardedDissimilarityCalculator<T>

Type Parameters:
T - Type of compared objects
All Superinterfaces:
Serializable
All Known Implementing Classes:
UnguardedBinaryIntManhattan, UnguardedBinaryIntTanimoto, UnguardedBinaryLongManhattan, UnguardedBinaryLongTanimoto, UnguardedBinaryLongTversky, UnguardedFloatVectorEuclidSqr, UnguardedFloatVectorManhattan, UnguardedFloatVectorMaxDiff, UnguardedFloatVectorTanimoto

@Beta
public interface UnguardedDissimilarityCalculator<T>
extends Serializable

Unguarded dissimilarity calculator.

Note that implementations are thread safe, but wont check any further API constraints. Extreme care is needed for usage.

Implementations are expected to be immutable, stateless and serializable.

Author:
Gabor Imre

Method Summary
 double dissimilarity(T target, T query)
          Compare dissimilarity of two objects.
 

Method Detail

dissimilarity

double dissimilarity(T target,
                     T query)
Compare dissimilarity of two objects.

Note that implementations might not check even basic consistency of compared objects.

Implementations must return valid real numbers which are smaller than Double.MAX_VALUE.

Parameters:
target - Target to compare
query - Query to compare
Returns:
Dissimilarity score

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)