Package com.chemaxon.descriptors.metrics
Interface MetricMetadata
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
BinaryVectorComparator
,FloatVectorComparator
- All Known Implementing Classes:
BinaryMetrics
,DRShapeMetrics
,FloatVectorMetrics
,ShapeMetrics
,TverskyParameters
Metric Metadata contains info about a specific metric.
Please note that the word Metric here is used in the sense of way descriptors compared. Thus not
all represented comparisons fulfill the definition of metric spaces (see isMetricSpace()
).
The attributes described here refers to the properties of dissimilarity values.
Please note that this interface is marked with Beta
annotation, so it can be subject of incompatible
changes or removal in later releases.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Zero dissimilarity and identity.boolean
Metric space.boolean
Non negativeness of the dissimilarity values.boolean
Symmetry.boolean
Triangle inequality.
-
Method Details
-
isSymmetric
boolean isSymmetric()Symmetry.- Returns:
- true when
d(x,y) = d(y,x)
- See Also:
-
isNonNegative
boolean isNonNegative()Non negativeness of the dissimilarity values.- Returns:
- true when
d(x,y) >= 0
- See Also:
-
isDissimilarityZeroIFFEquals
boolean isDissimilarityZeroIFFEquals()Zero dissimilarity and identity.- Returns:
- true when dissimilarity is 0 for (and only for) identical descriptors
- See Also:
-
isTriangeInequalityHolds
boolean isTriangeInequalityHolds()Triangle inequality.- Returns:
- true when
d(x,z) <= d(x,y) + d( y,z)
- See Also:
-
isMetricSpace
boolean isMetricSpace()Metric space.- Returns:
- If this comparator defines a metric space.
- See Also:
-