Package com.chemaxon.descriptors.metrics
Interface FloatVectorComparator
- All Superinterfaces:
MetricMetadata
,Serializable
- All Known Implementing Classes:
FloatVectorMetrics
Float vector based calculations.
Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Various utility methods related to float vector comparation. -
Method Summary
Modifier and TypeMethodDescriptiondouble
calculateFloatVectorDissimilarity
(float[] target, float[] query) Calculate dissimilarity.double
calculateFloatVectorSimilarity
(float[] target, float[] query) Deprecated.In various cases (euclid, euclid sqr, manhattan) this has no practical interpretationdouble
Possible lowest value of similarity/dissimilarity scores.double
Deprecated.In various cases (euclid, euclid sqr, manhattan) this has no practical interpretationMethods inherited from interface com.chemaxon.descriptors.metrics.MetricMetadata
isDissimilarityZeroIFFEquals, isMetricSpace, isNonNegative, isSymmetric, isTriangeInequalityHolds
-
Method Details
-
calculateFloatVectorDissimilarity
double calculateFloatVectorDissimilarity(float[] target, float[] query) Calculate dissimilarity.- Parameters:
target
- target vectorquery
- query vector- Returns:
- dissimilarity value
-
calculateFloatVectorSimilarity
Deprecated.In various cases (euclid, euclid sqr, manhattan) this has no practical interpretationCalculate similarity.- Parameters:
target
- target vectorquery
- query vector- Returns:
- similarity value
-
getLowerBoundForFloatVectors
double getLowerBoundForFloatVectors()Possible lowest value of similarity/dissimilarity scores.- Returns:
- possible lowest value of similarity/dissimilarity scores
-
getUpperBoundForFloatVectors
Deprecated.In various cases (euclid, euclid sqr, manhattan) this has no practical interpretationPossible highest value of similarity/dissimilarity scores.- Returns:
- possible highest value of similarity/dissimilarity scores
-