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


com.chemaxon.descriptors.alignment
Interface ShapeComparator<T extends ShapeDescriptor>

All Superinterfaces:
DescriptorComparator<T>, Serializable
All Known Implementing Classes:
AbstractShapeComparator

public interface ShapeComparator<T extends ShapeDescriptor>
extends DescriptorComparator<T>

Author:
Adrian Kalaszi

Method Summary
 ShapeComparisonResult compare(byte[] target, byte[] query)
          Compare two descriptors in serialized form.
 ShapeComparisonResult compare(T target, T query)
          Compare two descriptors.
 
Methods inherited from interface com.chemaxon.descriptors.common.DescriptorComparator
calculateDissimilarity, calculateDissimilarity, calculateSimilarity, calculateSimilarity, getLowerBound, getMetricMetadata, getUpperBound
 

Method Detail

compare

ShapeComparisonResult compare(T target,
                              T query)
Description copied from interface: DescriptorComparator
Compare two descriptors.

Please note that some implementation might return a result object containing additional data related to the compariosn results.

Specified by:
compare in interface DescriptorComparator<T extends ShapeDescriptor>
Parameters:
target - Target descriptor
query - Query descriptor
Returns:
Comparison result wrapper

compare

ShapeComparisonResult compare(byte[] target,
                              byte[] query)
Description copied from interface: DescriptorComparator
Compare two descriptors in serialized form.

Please note that some implementation might return a result object containing additional data related to the compariosn results. This method's functionality is equivalent to comparing (with DescriptorComparator.compare(com.chemaxon.descriptors.common.Descriptor, com.chemaxon.descriptors.common.Descriptor)) deserialized (by DescriptorGenerator.fromByteArray(byte[])) descriptors.

Specified by:
compare in interface DescriptorComparator<T extends ShapeDescriptor>
Parameters:
target - Target descriptor in its serialized form
query - Query descriptor in its serialized form
Returns:
Comparison result wrapper

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