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 Details

    • EuclideanSimilarityStrategy

      public EuclideanSimilarityStrategy()
  • Method Details

    • similarity

      public double similarity​(Vector v0, Vector v1)
      Description copied from interface: SimilarityStrategy
      Returns the similarity value between two vectors.
      Specified by:
      similarity in interface SimilarityStrategy
      Parameters:
      v0 - the first vector.
      v1 - the second vector.
      Returns:
      the similarity between vectors.