jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.unguarded
Class UnguardedBinaryLongTversky

Object
  extended by com.chemaxon.overlap.unguarded.UnguardedBinaryLongTversky
All Implemented Interfaces:
UnguardedDissimilarityCalculator<long[]>, Serializable

public class UnguardedBinaryLongTversky
extends Object
implements UnguardedDissimilarityCalculator<long[]>, Serializable

Parametrized Tversky comparator for binary fingerprints represented as long [].

Use with extreme care! This implementation wont check vector length equality.

Author:
Gabor Imre
See Also:
Serialized Form

Constructor Summary
UnguardedBinaryLongTversky(double coeffQuery, double coeffTarget)
          Construct new instance.
 
Method Summary
 double dissimilarity(long[] target, long[] query)
          Compare dissimilarity of two objects.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnguardedBinaryLongTversky

public UnguardedBinaryLongTversky(double coeffQuery,
                                  double coeffTarget)
Construct new instance.

Parameters:
coeffTarget - Target side coefficient
coeffQuery - Query side coefficient
Method Detail

dissimilarity

public double dissimilarity(long[] target,
                            long[] query)
Description copied from interface: UnguardedDissimilarityCalculator
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.

Specified by:
dissimilarity in interface UnguardedDissimilarityCalculator<long[]>
Parameters:
target - Target to compare
query - Query to compare
Returns:
Dissimilarity score

toString

public String toString()
Overrides:
toString in class Object

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)