Package it.unimi.dsi.law.vector
Interface SimilarityStrategy
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CosineSimilarityStrategy
,EuclideanSimilarityStrategy
public interface SimilarityStrategy extends Serializable
An interface specifying methods used to obtain pattern similarities.
-
Method Summary
Modifier and Type Method Description double
similarity(Vector v0, Vector v1)
Returns the similarity value between two vectors.
-
Method Details
-
similarity
Returns the similarity value between two vectors.- Parameters:
v0
- the first vector.v1
- the second vector.- Returns:
- the similarity between vectors.
-