|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.method.retrieve.NNretrieval.similarity.local.ontology.OntCosine
public class OntCosine
This function computes the cosine similarity. See package documentation for details.
jcolibri.method.retrieve.NNretrieval.similarity.local
Constructor Summary | |
---|---|
OntCosine()
|
Method Summary | |
---|---|
double |
compute(java.lang.Object caseObject,
java.lang.Object queryObject)
Computes the similarity between two objects |
boolean |
isApplicable(java.lang.Object o1,
java.lang.Object o2)
Applicable to Instance |
static void |
main(java.lang.String[] args)
Testing method using test5 ontology |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OntCosine()
Method Detail |
---|
public double compute(java.lang.Object caseObject, java.lang.Object queryObject) throws NoApplicableSimilarityFunctionException
LocalSimilarityFunction
compute
in interface LocalSimilarityFunction
caseObject
- object of the casequeryObject
- object of the query
NoApplicableSimilarityFunctionException
public boolean isApplicable(java.lang.Object o1, java.lang.Object o2)
isApplicable
in interface LocalSimilarityFunction
public static void main(java.lang.String[] args)
|
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 |