Interface SMStringCosine
-
- All Superinterfaces:
SimilarityMeasure
,SMString
- All Known Implementing Classes:
SMStringCosineImpl
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 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
Fields Modifier and Type Field Description static boolean
DEFAULT_CASE_SENSITIVE
The default value for case sensitive is true.static String
DEFAULT_DELIMITER
The default delimiter value is " ".static String
NAME
Name of similarity measure is "StringCosine".-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDelimiter()
boolean
isCaseSensitive()
void
setCaseInsensitive()
void
setCaseSensitive()
void
setDelimiter(String delimiter)
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
-
-
-
Field Detail
-
NAME
static final String NAME
Name of similarity measure is "StringCosine".- See Also:
- Constant Field Values
-
DEFAULT_DELIMITER
static final String DEFAULT_DELIMITER
The default delimiter value is " ".- See Also:
- Constant Field Values
-
DEFAULT_CASE_SENSITIVE
static final boolean DEFAULT_CASE_SENSITIVE
The default value for case sensitive is true.- See Also:
- Constant Field Values
-
-