jcolibri.method.retrieve.NNretrieval.similarity.global
Class Average

java.lang.Object
  extended by jcolibri.method.retrieve.NNretrieval.similarity.StandardGlobalSimilarityFunction
      extended by jcolibri.method.retrieve.NNretrieval.similarity.global.Average
All Implemented Interfaces:
GlobalSimilarityFunction

public class Average
extends StandardGlobalSimilarityFunction

This function computes the average of the similarites of its subattributes.

Version:
1.0
Author:
Juan A. Recio-Garcia

Constructor Summary
Average()
           
 
Method Summary
 double computeSimilarity(double[] values, double[] weigths, int ivalue)
          Hook method that must be implemented by subclasses returned the global similarity value.
 
Methods inherited from class jcolibri.method.retrieve.NNretrieval.similarity.StandardGlobalSimilarityFunction
compute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Average

public Average()
Method Detail

computeSimilarity

public double computeSimilarity(double[] values,
                                double[] weigths,
                                int ivalue)
Description copied from class: StandardGlobalSimilarityFunction
Hook method that must be implemented by subclasses returned the global similarity value.

Specified by:
computeSimilarity in class StandardGlobalSimilarityFunction
Parameters:
values - of the similarity of the sub-attributes
weigths - of the sub-attributes
ivalue - (or sub-attributes) that were obtained (some subattributes may not compute for the similarity).
Returns:
a value between [0..1]

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