public final class ShapeIntersectionComparator extends AbstractShapeComparator<ShapeDescriptor>
Guarded.EnsureThat, Guarded.New
Constructor and Description |
---|
ShapeIntersectionComparator(ShapeGenerator generator,
ShapeComparatorParameter comparatorParameter) |
Modifier and Type | Method and Description |
---|---|
ShapeComparisonResult |
compare(ShapeDescriptor target,
ShapeDescriptor query)
Compare two descriptors.
|
MetricMetadata |
getMetricMetadata()
Metadata about this metric.
|
Optional<Double> |
getUpperBound()
Get upper bound for the similarity/dissimilarity values if such one can be determined.
|
String |
toString() |
calculateDissimilarity, calculateDissimilarity, calculateSimilarity, calculateSimilarity, compare, getGuardObject, getLowerBound, unguardedContext
public ShapeIntersectionComparator(ShapeGenerator generator, ShapeComparatorParameter comparatorParameter)
public ShapeComparisonResult compare(ShapeDescriptor target, ShapeDescriptor query)
DescriptorComparator
Please note that some implementation might return a result object containing additional data related to the compariosn results.
target
- Target descriptorquery
- Query descriptorpublic Optional<Double> getUpperBound()
DescriptorComparator
public MetricMetadata getMetricMetadata()
DescriptorComparator
It is guaranteed that the actual instance returned can be used as a parameter of the appropriate comparator
getter method of the associated DescriptorGenerator