Package com.oracle.coherence.ai
Interface DistanceAlgorithm<T>
- Type Parameters:
T
- the type of the vector
- All Known Implementing Classes:
AbstractDistance
,CosineDistance
,InnerProductDistance
,L2SquaredDistance
public interface DistanceAlgorithm<T>
An algorithm that can calculate distance to a given vector.
-
Method Summary
-
Method Details
-
distance
Calculate the distance between the specified vectors.- Parameters:
v1
- the vector to calculate the distance fromv2
- the vector to calculate the distance to- Returns:
- the distance between the specified vectors
-