User e469f67125
03-10-2008 21:10:43
JChem version: 5_1_0
JDK 1.6.0_07 (Linux)
Result:
The purpose is simple binary fingerprints for implementing structural key based fingerprints.
JDK 1.6.0_07 (Linux)
Code: |
import java.io.*; import java.util.*; import chemaxon.descriptors.CDParameters; import chemaxon.descriptors.CustomDescriptor; public class z { public static void main(String[] args) throws IOException { int length=64; CustomDescriptor fpKQ = new CustomDescriptor(CDParameters.BINARY_DESCRIPTOR,length); CustomDescriptor fpK = new CustomDescriptor(CDParameters.BINARY_DESCRIPTOR,length); fpKQ.clear(); fpK.clear(); float sim_tan = fpKQ.getTanimoto(fpK); System.err.println("\tTanimoto: "+String.format("%.2f",sim_tan)); } } |
Result:
- $ java z
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(ArrayList.java:324)
at chemaxon.descriptors.MDParameters.isAsymmetric(MDParameters.java:746)
at chemaxon.descriptors.CustomDescriptor.getTanimoto(CustomDescriptor.java:524)
at z.main(z.java:17)
The purpose is simple binary fingerprints for implementing structural key based fingerprints.