Package com.apple.foundationdb.rabitq
Class RaBitEstimator
java.lang.Object
com.apple.foundationdb.rabitq.RaBitEstimator
- All Implemented Interfaces:
Estimator
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledistance(RealVector query, RealVector storedVector) Calculates the distance between a pre-rotated and translated query vector and a stored vector.estimateDistanceAndErrorBound(RealVector query, EncodedRealVector encodedVector) int
-
Constructor Details
-
RaBitEstimator
-
-
Method Details
-
getMetric
-
getNumExBits
public int getNumExBits() -
distance
Description copied from interface:EstimatorCalculates the distance between a pre-rotated and translated query vector and a stored vector.This method is designed to compute the distance metric between two vectors in a high-dimensional space. It is crucial that the
queryvector has already been appropriately transformed (e.g., rotated and translated) to align with the coordinate system of thestoredVectorbefore calling this method. -
estimateDistanceAndErrorBound
@Nonnull public RaBitEstimator.Result estimateDistanceAndErrorBound(@Nonnull RealVector query, @Nonnull EncodedRealVector encodedVector)
-