Package com.chemaxon.descriptors.metrics
Class BinaryVectorComparator.Util
- java.lang.Object
-
- com.chemaxon.descriptors.metrics.BinaryVectorComparator.Util
-
- Enclosing interface:
- BinaryVectorComparator
@Beta public static class BinaryVectorComparator.Util extends Object
Simple consistency check utility.
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkBitCounts(int bitCount, int targetOnly, int queryOnly, int common)
Check that descriptor comparison parameters are consistent.
-
-
-
Method Detail
-
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
-
-