@Beta @PublicAPI public interface FloatVectorComparator extends MetricMetadata, Serializable
Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
Modifier and Type | Interface and Description |
---|---|
static class |
FloatVectorComparator.Util
Various utility methods related to float vector comparation.
|
Modifier and Type | Method and Description |
---|---|
double |
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 interpretation
|
double |
getLowerBoundForFloatVectors()
Possible lowest value of similarity/dissimilarity scores.
|
double |
getUpperBoundForFloatVectors()
Deprecated.
In various cases (euclid, euclid sqr, manhattan) this has no practical interpretation
|
isDissimilarityZeroIFFEquals, isMetricSpace, isNonNegative, isSymmetric, isTriangeInequalityHolds
double calculateFloatVectorDissimilarity(float[] target, float[] query)
target
- target vectorquery
- query vector@Deprecated double calculateFloatVectorSimilarity(float[] target, float[] query)
target
- target vectorquery
- query vectordouble getLowerBoundForFloatVectors()
@Deprecated double getUpperBoundForFloatVectors()