Interface FloatVectorComparator

All Superinterfaces:
MetricMetadata, Serializable
All Known Implementing Classes:
FloatVectorMetrics

@Beta @PublicApi public interface FloatVectorComparator extends MetricMetadata, Serializable
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.

  • Method Details

    • calculateFloatVectorDissimilarity

      double calculateFloatVectorDissimilarity(float[] target, float[] query)
      Calculate dissimilarity.
      Parameters:
      target - target vector
      query - query vector
      Returns:
      dissimilarity value
    • calculateFloatVectorSimilarity

      @Deprecated double calculateFloatVectorSimilarity(float[] target, float[] query)
      Deprecated.
      In various cases (euclid, euclid sqr, manhattan) this has no practical interpretation
      Calculate similarity.
      Parameters:
      target - target vector
      query - 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 double getUpperBoundForFloatVectors()
      Deprecated.
      In various cases (euclid, euclid sqr, manhattan) this has no practical interpretation
      Possible highest value of similarity/dissimilarity scores.
      Returns:
      possible highest value of similarity/dissimilarity scores