jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.descriptors.metrics
Class BinaryVectorComparator.Util

Object
  extended by com.chemaxon.descriptors.metrics.BinaryVectorComparator.Util
Enclosing interface:
BinaryVectorComparator

@Beta
public static class BinaryVectorComparator.Util
extends Object

Simple consistency check utility.


Constructor Summary
BinaryVectorComparator.Util()
           
 
Method Summary
static void checkBitCounts(int bitCount, int targetOnly, int queryOnly, int common)
          Check that descriptor comparison parameters are consistent.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryVectorComparator.Util

public BinaryVectorComparator.Util()
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 size
targetOnly - Count of positions set in the target side only
queryOnly - Count of positions set in the query side only
common - Count of positions set both in the query and target side
Throws:
IllegalArgumentException - When the four given counts are inconsistent or invalid

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)