jcolibri.method.reuse.classification
Class KNNClassificationConfig

java.lang.Object
  extended by jcolibri.method.retrieve.NNretrieval.NNConfig
      extended by jcolibri.method.reuse.classification.KNNClassificationConfig

public class KNNClassificationConfig
extends NNConfig

This class stores the configuration for the KNN classification methods.

Author:
Lisa Cummins

Constructor Summary
KNNClassificationConfig()
           
 
Method Summary
 KNNClassificationMethod getClassificationMethod()
          Returns the classification method stored in this config object.
 int getK()
           
 void setClassificationMethod(KNNClassificationMethod classificationMethod)
          Sets the classification method for this config object to be classificationMethod.
 void setK(int k)
           
 
Methods inherited from class jcolibri.method.retrieve.NNretrieval.NNConfig
addMapping, addMapping, getDescriptionSimFunction, getGlobalSimilFunction, getLocalSimilFunction, getWeight, setDescriptionSimFunction, setWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KNNClassificationConfig

public KNNClassificationConfig()
Method Detail

getClassificationMethod

public KNNClassificationMethod getClassificationMethod()
Returns the classification method stored in this config object.

Returns:
the classification method stored in this config object.

setClassificationMethod

public void setClassificationMethod(KNNClassificationMethod classificationMethod)
Sets the classification method for this config object to be classificationMethod.

Parameters:
classificationMethod - the classification method to be used for this config object.

getK

public int getK()
Returns:
Returns the k.

setK

public void setK(int k)
Parameters:
k - The k to set.

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