public final class DRShapeHistogramComparator extends AbstractShapeComparator<DRShapeDescriptor>
Guarded.EnsureThat, Guarded.New
Constructor and Description |
---|
DRShapeHistogramComparator(DRShapeGenerator generator,
DRShapeComparatorParameter comparatorParameter) |
Modifier and Type | Method and Description |
---|---|
ShapeComparisonResult |
compare(DRShapeDescriptor target,
DRShapeDescriptor 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 DRShapeHistogramComparator(DRShapeGenerator generator, DRShapeComparatorParameter comparatorParameter)
public ShapeComparisonResult compare(DRShapeDescriptor target, DRShapeDescriptor 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