jcolibri.method.retrieve.NNretrieval.similarity
Interface GlobalSimilarityFunction

All Known Implementing Classes:
Average, StandardGlobalSimilarityFunction

public interface GlobalSimilarityFunction

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

Version:
1.0
Author:
Juan A. Recio-Garcia

Method Summary
 double compute(CaseComponent componentOfCase, CaseComponent componentOfQuery, CBRCase _case, CBRQuery _query, NNConfig numSimConfig)
          Computes the global simliarity between two compound attributes.
 

Method Detail

compute

double compute(CaseComponent componentOfCase,
               CaseComponent componentOfQuery,
               CBRCase _case,
               CBRQuery _query,
               NNConfig numSimConfig)
Computes the global simliarity between two compound attributes. It requires the NNConfig object that stores the configuration of its contained attributes.

Parameters:
componentOfCase - compound attribute of the case
componentOfQuery - compound attribute of the query
_case - case being compared
_query - query being compared
numSimConfig - Similarity functions configuration
Returns:
a value between [0..1]

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