|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nrc.fuzzy.SimilarityOperator | +--nrc.fuzzy.SimilarityByAreaOperator
A class that provides an operator to calculate the similarity between 2 fuzzy values. The similarity measure is the ratio of area of intersection to area of union of the fuzzy values.
The default similarity operator is the SimilarityByPossibilityOperator. This can be changed using the static setDefaultSimilarityOperator method of the FuzzyValue class.
SimilarityOperator
,
SimilarityOperatorInterface
,
SimilarityByPossibilityOperator
,
Serialized FormConstructor Summary | |
SimilarityByAreaOperator()
|
Method Summary | |
double |
similarity(nrc.fuzzy.FuzzyValue fv1,
nrc.fuzzy.FuzzyValue fv2)
SimilarityByAreaOperator provides a similarity method that accepts 2 FuzzyValue objects and returns the measure of the similarity between them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimilarityByAreaOperator()
Method Detail |
public double similarity(nrc.fuzzy.FuzzyValue fv1, nrc.fuzzy.FuzzyValue fv2) throws IncompatibleFuzzyValuesException
similarity
in interface SimilarityOperatorInterface
fv1
- fv2
-
IncompatibleFuzzyValuesException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |