Interface SMStringCosine
- All Superinterfaces:
SimilarityMeasure
,SMString
- All Known Implementing Classes:
SMStringCosineImpl
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
http://en.wikipedia.org/wiki/Cosine_similarity.
The comparison can be case sensitive or insensitive. The delimiter can be defined by a Regex, the default is a space character.
- Author:
- Tobias Dahlem
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default value for case sensitive is true.static final String
The default delimiter value is " ".static final String
Name of similarity measure is "StringCosine".Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
-
Method Summary
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
Field Details
-
NAME
Name of similarity measure is "StringCosine".- See Also:
-
DEFAULT_DELIMITER
The default delimiter value is " ".- See Also:
-
DEFAULT_CASE_SENSITIVE
static final boolean DEFAULT_CASE_SENSITIVEThe default value for case sensitive is true.- See Also:
-
-
Method Details
-
getDelimiter
String getDelimiter() -
setDelimiter
-
isCaseSensitive
boolean isCaseSensitive() -
setCaseInsensitive
void setCaseInsensitive() -
setCaseSensitive
void setCaseSensitive()
-