Package com.chemaxon.descriptors.metrics
Class BinaryVectorComparator.Util
java.lang.Object
com.chemaxon.descriptors.metrics.BinaryVectorComparator.Util
- Enclosing interface:
- BinaryVectorComparator
Simple consistency check utility.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkBitCounts
(int bitCount, int targetOnly, int queryOnly, int common) Check that descriptor comparison parameters are consistent.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
checkBitCounts
public static void checkBitCounts(int bitCount, int targetOnly, int queryOnly, int common) throws IllegalArgumentException Check that descriptor comparison parameters are consistent.- Parameters:
bitCount
- Descriptor sizetargetOnly
- Count of positions set in the target side onlyqueryOnly
- Count of positions set in the query side onlycommon
- Count of positions set both in the query and target side- Throws:
IllegalArgumentException
- When the four given counts are inconsistent or invalid
-