jcolibri.method.retrieve.NNretrieval
Class NNConfig

java.lang.Object
  extended by jcolibri.method.retrieve.NNretrieval.NNConfig
Direct Known Subclasses:
KNNClassificationConfig

public class NNConfig
extends java.lang.Object

This class stores the configuration for the NN retrieval method. It stores:

Version:
1.0
Author:
Juan A. Recio-Garcia

Constructor Summary
NNConfig()
           
 
Method Summary
 void addMapping(Attribute attribute, GlobalSimilarityFunction similFunction)
          Sets the global similarity function to apply to a compound attribute.
 void addMapping(Attribute attribute, LocalSimilarityFunction similFunction)
          Sets the local similarity function to apply to a simple attribute.
 GlobalSimilarityFunction getDescriptionSimFunction()
           
 GlobalSimilarityFunction getGlobalSimilFunction(Attribute attribute)
          Gets the global similarity function configured for a given compound attribute.
 LocalSimilarityFunction getLocalSimilFunction(Attribute attribute)
          Gets the local similarity function configured for a given simple attribute.
 java.lang.Double getWeight(Attribute attribute)
          Gets the weight for an attribute.
 void setDescriptionSimFunction(GlobalSimilarityFunction descriptionSimFunction)
           
 void setWeight(Attribute attribute, java.lang.Double weight)
          Sets the weight for an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NNConfig

public NNConfig()
Method Detail

getDescriptionSimFunction

public GlobalSimilarityFunction getDescriptionSimFunction()
Returns:
Returns the description similarity function.

setDescriptionSimFunction

public void setDescriptionSimFunction(GlobalSimilarityFunction descriptionSimFunction)
Parameters:
descriptionSimFunction - The description similarity function. to set.

addMapping

public void addMapping(Attribute attribute,
                       LocalSimilarityFunction similFunction)
Sets the local similarity function to apply to a simple attribute.


getLocalSimilFunction

public LocalSimilarityFunction getLocalSimilFunction(Attribute attribute)
Gets the local similarity function configured for a given simple attribute.


addMapping

public void addMapping(Attribute attribute,
                       GlobalSimilarityFunction similFunction)
Sets the global similarity function to apply to a compound attribute.


getGlobalSimilFunction

public GlobalSimilarityFunction getGlobalSimilFunction(Attribute attribute)
Gets the global similarity function configured for a given compound attribute.


setWeight

public void setWeight(Attribute attribute,
                      java.lang.Double weight)
Sets the weight for an attribute.


getWeight

public java.lang.Double getWeight(Attribute attribute)
Gets the weight for an attribute. If an attribute does not have a configured weight it returns 1 by default.


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