@PublicAPI public class Similarity extends java.lang.Object
Constructor and Description |
---|
Similarity(byte[] bitstring1,
byte[] bitstring2)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
@Deprecated public Similarity(byte[] bitstring1, byte[] bitstring2)
bitstring1
- left operandbitstring2
- right operand@Deprecated public double Tanimoto()
public static double getTanimoto(byte[] bitstring1, byte[] bitstring2)
bitstring1
- left operandbitstring2
- right operandpublic static double getTanimoto(byte[] bitstring1, byte[] bitstring2, int bytesToCompare)
bitstring1
- left operandbitstring2
- right operandbytesToCompare
- the number of bytes to use in the calculcation.public static double getTanimoto(int[] bitstring1, int[] bitstring2, int intsToCompare)
bitstring1
- left operandbitstring2
- right operandintsToCompare
- the number of bytes to use in the calculcation.