Package chemaxon.sss.screen
Class Similarity
java.lang.Object
chemaxon.sss.screen.Similarity
Calculates the similarity of two bit strings.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic doublegetTanimoto(byte[] bitstring1, byte[] bitstring2) Calculates the Tanimoto coefficient of the two bit strings.static doublegetTanimoto(byte[] bitstring1, byte[] bitstring2, int bytesToCompare) Calculates the Tanimoto coefficient of the two bit strings.static doublegetTanimoto(int[] bitstring1, int[] bitstring2, int intsToCompare) Calculates the Tanimoto coefficient of the two bit strings.doubleTanimoto()Deprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor Details- 
Similaritypublic Similarity()
 
- 
- 
Method Details- 
TanimotoDeprecated, for removal: This API element is subject to removal in a future version.Calculates tanimoto.- Returns:
- the tanimoto coefficient
 
- 
getTanimotopublic 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.- Parameters:
- bitstring1- left operand
- bitstring2- right operand
- Returns:
- the tanimoto coefficient
 
- 
getTanimotopublic 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:
- bitstring1- left operand
- bitstring2- right operand
- bytesToCompare- the number of bytes to use in the calculcation.
- Returns:
- the tanimoto coefficient
- Since:
- JChem 3.1
 
- 
getTanimotopublic 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:
- bitstring1- left operand
- bitstring2- right operand
- intsToCompare- the number of bytes to use in the calculcation.
- Returns:
- the tanimoto coefficient
- Since:
- JChem 3.1
 
 
-