Interface SMStringCosine

All Superinterfaces:
SimilarityMeasure, SMString
All Known Implementing Classes:

public interface SMStringCosine extends SMString
Measures the Cosine similarity of two vectors of an inner product space and compares the angle between them. For further explanation about the Cosine Similarity, refer to

The comparison can be case sensitive or insensitive. The delimiter can be defined by a Regex, the default is a space character.

Tobias Dahlem
  • Field Details

    • NAME

      static final String NAME
      Name of similarity measure is "StringCosine".
      See Also:

      static final String DEFAULT_DELIMITER
      The default delimiter value is " ".
      See Also:

      static final boolean DEFAULT_CASE_SENSITIVE
      The default value for case sensitive is true.
      See Also:
  • Method Details

    • getDelimiter

      String getDelimiter()
    • setDelimiter

      void setDelimiter(String delimiter)
    • isCaseSensitive

      boolean isCaseSensitive()
    • setCaseInsensitive

      void setCaseInsensitive()
    • setCaseSensitive

      void setCaseSensitive()