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


com.chemaxon.descriptors.vectors.binary
Interface BvGenerator

All Superinterfaces:
DescriptorGenerator<BinaryVectorDescriptor>, Serializable

@Beta
public interface BvGenerator
extends DescriptorGenerator<BinaryVectorDescriptor>

Generator for generic binary vector descriptors.

Note that method DescriptorGenerator.generateDescriptor(chemaxon.struc.Molecule) throws UnsupportedOperationException

Author:
Gabor Imre

Method Summary
 BinaryVectorDescriptor fromBitSet(BitSet bits)
          Create a descriptor from a BitSet representation.
 DescriptorComparator<BinaryVectorDescriptor> getBinaryMetricsComparator(BinaryMetrics metrics)
          Creates a new Comparator instance according to the given metric.
 DescriptorComparator<BinaryVectorDescriptor> getTverskyComparator(TverskyParameters tverskyParamaters)
          Creates a new Comparator instance according to the given Tversky metric parameters.
 
Methods inherited from interface com.chemaxon.descriptors.common.DescriptorGenerator
fromByteArray, fromString, generateDescriptor, getBareDescriptor, getDefaultComparator, getGuardObject, getParameters, toByteArray, toString
 

Method Detail

getBinaryMetricsComparator

DescriptorComparator<BinaryVectorDescriptor> getBinaryMetricsComparator(BinaryMetrics metrics)
Creates a new Comparator instance according to the given metric.

Parameters:
metrics - binary metric
Returns:
a comparator object

getTverskyComparator

DescriptorComparator<BinaryVectorDescriptor> getTverskyComparator(TverskyParameters tverskyParamaters)
Creates a new Comparator instance according to the given Tversky metric parameters.

Parameters:
tverskyParamaters - parameters for the comparator
Returns:
a comparator object

fromBitSet

BinaryVectorDescriptor fromBitSet(BitSet bits)
Create a descriptor from a BitSet representation.

Parameters:
bits - Values to represent.
Returns:
Descriptor representing the given values.
Throws:
IllegalArgumentException - when given BitSet contains set bit which can not be represented by this descriptor.

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