Interface VectorDistance
- All Known Implementing Classes:
EuclideanDistance
public interface VectorDistance
Interface for classes that are able to calculate vector distances.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
calculateDistance
(double[] v1, double[] v2) Calculation of the distance.
-
Method Details
-
calculateDistance
double calculateDistance(double[] v1, double[] v2) Calculation of the distance.- Parameters:
v1
- Vector 1.v2
- Vector 2.- Returns:
- The distance.
-