chemaxon.sss.screen
Class Similarity

java.lang.Object
  extended by chemaxon.sss.screen.Similarity

public class Similarity
extends java.lang.Object

Calculates the similarity of two bit strings.

Author:
Andras Volford

Constructor Summary
Similarity(byte[] bitstring1, byte[] bitstring2)
          Deprecated.  
 
Method Summary
static double getTanimoto(byte[] bitstring1, byte[] bitstring2)
          Calculates the Tanimoto coefficient of the two bit strings.
static double getTanimoto(byte[] bitstring1, byte[] bitstring2, int bytesToCompare)
          Calculates the Tanimoto coefficient of the two bit strings.
static double getTanimoto(int[] bitstring1, int[] bitstring2, int intsToCompare)
          Calculates the Tanimoto coefficient of the two bit strings.
 double Tanimoto()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Similarity

public Similarity(byte[] bitstring1,
                  byte[] bitstring2)
Deprecated. 

Method Detail

Tanimoto

public double Tanimoto()
Deprecated. 


getTanimoto

public static double getTanimoto(byte[] bitstring1,
                                 byte[] bitstring2)
Calculates the Tanimoto coefficient of the two bit strings. The calculated value is between 0 and 1. The higher the value the more similar are the bit strings. All bits in the byte arrays are used. The length of the byte arrays has to be equal.


getTanimoto

public static double getTanimoto(byte[] bitstring1,
                                 byte[] bitstring2,
                                 int bytesToCompare)
Calculates the Tanimoto coefficient of the two bit strings. The calculated value is between 0 and 1. The higher the value the more similar are the bit strings.

Parameters:
bytesToCompare - the number of bytes to use in the calculcation.
Since:
JChem 3.1

getTanimoto

public static double getTanimoto(int[] bitstring1,
                                 int[] bitstring2,
                                 int intsToCompare)
Calculates the Tanimoto coefficient of the two bit strings. The calculated value is between 0 and 1. The higher the value the more similar are the bit strings.

Parameters:
intsToCompare - the number of bytes to use in the calculcation.
Since:
JChem 3.1