コード例 #1
0
ファイル: LWL.java プロジェクト: alishakiba/jDenetX
 /**
  * Returns the value of the named measure from the neighbour search algorithm.
  *
  * @param additionalMeasureName the name of the measure to query for its value
  * @return the value of the named measure
  * @throws IllegalArgumentException if the named measure is not supported
  */
 public double getMeasure(String additionalMeasureName) {
   return m_NNSearch.getMeasure(additionalMeasureName);
 }
コード例 #2
0
 /**
  * Returns the value of the named measure from the neighbour search algorithm, plus the chosen K
  * in case cross-validation is enabled.
  *
  * @param additionalMeasureName the name of the measure to query for its value
  * @return the value of the named measure
  * @throws IllegalArgumentException if the named measure is not supported
  */
 public double getMeasure(String additionalMeasureName) {
   if (additionalMeasureName.equals("measureKNN")) return m_kNN;
   else return m_NNSearch.getMeasure(additionalMeasureName);
 }