/** * Returns true if the named metric is maximisable * * @param statName the name of the metric/statistic to check * @return true if the metric in question is optimum at a maximal value * @throws Exception if a problem occurs */ public boolean metricIsMaximisable(String statName) throws Exception { Integer builtinIndex = m_builtin.get(statName.toLowerCase()); if (builtinIndex != null) { return builtInMetricIsMaximisable(builtinIndex.intValue()); } else { AbstractEvaluationMetric m = m_pluginMetrics.get(statName.toLowerCase()); if (m == null) { throw new Exception("Unknown evaluation metric: " + statName); } return pluginMetricIsMaximisable(m, statName); } } }
/** * Returns true if the named metric is maximisable * * @param statName the name of the metric/statistic to check * @return true if the metric in question is optimum at a maximal value * @throws Exception if a problem occurs */ public boolean metricIsMaximisable(String statName) throws Exception { Integer builtinIndex = m_builtin.get(statName.toLowerCase()); if (builtinIndex != null) { return builtInMetricIsMaximisable(builtinIndex.intValue()); } else { AbstractEvaluationMetric m = m_pluginMetrics.get(statName.toLowerCase()); if (m == null) { throw new Exception("Unknown evaluation metric: " + statName); } return pluginMetricIsMaximisable(m, statName); } } }