|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.method.retrieve.NNretrieval.similarity.local.textual.DiceCoefficient
public class DiceCoefficient
Dice Coefficient Similarity.
This function computes: 2*|intersection(o1,o2)| / |o1|+|o2|.
It is applicable to any Text object.
Developed at: Robert Gordon University - Aberdeen & Facultad Informática, Universidad Complutense de Madrid (GAIA)
Constructor Summary | |
---|---|
DiceCoefficient()
|
Method Summary | |
---|---|
double |
compute(java.lang.Object caseObject,
java.lang.Object queryObject)
Applies the similarity |
boolean |
isApplicable(java.lang.Object o1,
java.lang.Object o2)
Indicates if the function is applicable to two objects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiceCoefficient()
Method Detail |
---|
public double compute(java.lang.Object caseObject, java.lang.Object queryObject) throws NoApplicableSimilarityFunctionException
compute
in interface LocalSimilarityFunction
caseObject
- IETextqueryObject
- IEText
NoApplicableSimilarityFunctionException
public boolean isApplicable(java.lang.Object o1, java.lang.Object o2)
LocalSimilarityFunction
isApplicable
in interface LocalSimilarityFunction
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |