jcolibri.method.retrieve.NNretrieval.similarity
Interface LocalSimilarityFunction

All Known Implementing Classes:
AverageMultipleTextValues, CompressionBased, CosineCoefficient, DiceCoefficient, EnumCyclicDistance, EnumDistance, Equal, EqualsStringIgnoreCase, InContextLocalSimilarityFunction, InrecaLessIsBetter, InrecaMoreIsBetter, Interval, JaccardCoefficient, LuceneTextSimilarity, MaxString, McSherryLessIsBetter, McSherryMoreIsBetter, NormalisedCompression, OntCosine, OntDeep, OntDeepBasic, OntDetail, OverlapCoefficient, Table, Threshold, TokensContained

public interface LocalSimilarityFunction

Defines the methods of a local similarity function. A local similarity function is applied to simple attributes by the NN algorithm.

Version:
1.0
Author:
Juan A. Recio-Garcia

Method Summary
 double compute(java.lang.Object caseObject, java.lang.Object queryObject)
          Computes the similarity between two objects
 boolean isApplicable(java.lang.Object caseObject, java.lang.Object queryObject)
          Indicates if the function is applicable to two objects
 

Method Detail

compute

double compute(java.lang.Object caseObject,
               java.lang.Object queryObject)
               throws NoApplicableSimilarityFunctionException
Computes the similarity between two objects

Parameters:
caseObject - object of the case
queryObject - object of the query
Returns:
a value between [0..1]
Throws:
NoApplicableSimilarityFunctionException

isApplicable

boolean isApplicable(java.lang.Object caseObject,
                     java.lang.Object queryObject)
Indicates if the function is applicable to two objects


GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es