Package it.unimi.dsi.law.vector
Class EuclideanSimilarityStrategy
java.lang.Object
it.unimi.dsi.law.vector.EuclideanSimilarityStrategy
- All Implemented Interfaces:
SimilarityStrategy
,Serializable
public class EuclideanSimilarityStrategy extends Object implements SimilarityStrategy
A class that compute the similarity between pattern using the euclidean distance.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EuclideanSimilarityStrategy()
-
Method Summary
Modifier and Type Method Description double
similarity(Vector v0, Vector v1)
Returns the similarity value between two vectors.
-
Constructor Details
-
EuclideanSimilarityStrategy
public EuclideanSimilarityStrategy()
-
-
Method Details
-
similarity
Description copied from interface:SimilarityStrategy
Returns the similarity value between two vectors.- Specified by:
similarity
in interfaceSimilarityStrategy
- Parameters:
v0
- the first vector.v1
- the second vector.- Returns:
- the similarity between vectors.
-