/**************************************************************************** Copyright (C) 2010-2012 the Office National des ForĂȘts (ONF), France All rights reserved. Contact : alexandre.piboule@onf.fr Developers : Alexandre PIBOULE (ONF) This file is part of PluginONF library. PluginONF is free library: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PluginONF is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with PluginONF. If not, see . *****************************************************************************/ #ifndef ONF_METRICNBYLASCLASS_H #define ONF_METRICNBYLASCLASS_H #include "ctliblas/metrics/abstract/ct_abstractmetric_las.h" #include "ctlibmetrics/tools/ct_valueandbool.h" class ONF_MetricNbyLASClass : public CT_AbstractMetric_LAS { Q_OBJECT public: struct Config { VaB n; VaB i_mean_1st; VaB n_last; VaB n_intermediate; VaB n_only; VaB n_error; VaB n_cla00; VaB n_cla01; VaB n_cla02; VaB n_cla03; VaB n_cla04; VaB n_cla05; VaB n_cla06; VaB n_cla07; VaB n_cla08; VaB n_cla09; VaB n_cla10; VaB n_cla11; VaB n_cla12; VaB n_cla13; VaB n_cla14; VaB n_cla15; VaB n_cla16; VaB n_cla17; VaB n_cla18; VaB n_cla19_63; VaB n_cla64_255; VaB max_m_min; VaB numberOfLines; VaB nBestLine; VaB nSecondLine; VaB nWorstLine; }; ONF_MetricNbyLASClass(); ONF_MetricNbyLASClass(const ONF_MetricNbyLASClass &other); QString getShortDescription() const; QString getDetailledDescription() const; /** * @brief Returns the metric configuration */ ONF_MetricNbyLASClass::Config metricConfiguration() const; /** * @brief Change the configuration of this metric */ void setMetricConfiguration(const ONF_MetricNbyLASClass::Config &conf); CT_AbstractConfigurableElement* copy() const; protected: void computeMetric(); void declareAttributes(); private: Config m_configAndResults; }; #endif // ONF_METRICNBYLASCLASS_H