001package es.ucm.fdi.gaia.jcolibri.method.reuse.classification; 002 003 004import es.ucm.fdi.gaia.jcolibri.method.retrieve.NNretrieval.NNConfig; 005 006/** 007 * This class stores the configuration for the KNN classification methods. 008 * @author Lisa Cummins 009 */ 010public class KNNClassificationConfig extends NNConfig { 011 012 /** 013 * The type of classification method being used by this 014 * config object. 015 */ 016 KNNClassificationMethod classificationMethod; 017 018 /** 019 * Returns the classification method stored in this 020 * config object. 021 * @return the classification method stored in this 022 * config object. 023 */ 024 public KNNClassificationMethod getClassificationMethod() 025 { return classificationMethod; 026 } 027 028 /** 029 * Sets the classification method for this 030 * config object to be classificationMethod. 031 * @param classificationMethod the classification 032 * method to be used for this config object. 033 */ 034 public void setClassificationMethod(KNNClassificationMethod classificationMethod) 035 { this.classificationMethod = classificationMethod; 036 } 037 038 private int K = Integer.MAX_VALUE; 039 040 /** 041 * @return Returns the k. 042 */ 043 public int getK() { 044 return K; 045 } 046 047 /** 048 * @param k The k to set. 049 */ 050 public void setK(int k) { 051 K = k; 052 } 053}