nrc.fuzzy
Interface SimilarityOperatorInterface
- All Known Implementing Classes:
- SimilarityOperator
- public interface SimilarityOperatorInterface
An interface for classes that provides an operator to calculate
the similarity between 2 fuzzy values. By default
the SimilarityByArea operator (ratio of area of intersection
to area of union of the fuzzy values) is used.
- See Also:
SimilarityByAreaOperator
,
SimilarityByPossibilityOperator
Method Summary |
double |
similarity(nrc.fuzzy.FuzzyValue fuzzyValue1,
nrc.fuzzy.FuzzyValue fuzzyValue2)
Classes that implement the SimilarityOperatorInterface must provide
a similarity method that accepts 2 FuzzyValue objects and returns the
measure of the similarity between them. |
similarity
public double similarity(nrc.fuzzy.FuzzyValue fuzzyValue1,
nrc.fuzzy.FuzzyValue fuzzyValue2)
throws IncompatibleFuzzyValuesException
- Classes that implement the SimilarityOperatorInterface must provide
a similarity method that accepts 2 FuzzyValue objects and returns the
measure of the similarity between them.
- Parameters:
fuzzyValue1
- fuzzyValue2
-
- Returns:
- double that is the result of applying the operator to the 2 values (the similarity measure)
IncompatibleFuzzyValuesException