/**************************************************************************** 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_METRICINTENSITY_H #define ONF_METRICINTENSITY_H #include "ctliblas/metrics/abstract/ct_abstractmetric_las.h" #include "ctlibmetrics/tools/ct_valueandbool.h" class ONF_MetricIntensity : public CT_AbstractMetric_LAS { Q_OBJECT public: struct Config { VaB n; VaB n_first; VaB i_max_first; VaB i_mean_first; VaB i_sd_first; VaB i_cv_first; VaB n_only; VaB i_max_only; VaB i_mean_only; VaB i_sd_only; VaB i_cv_only; VaB n_5_95_first; VaB i_5_95_mean_first; VaB i_5_95_sd_first; VaB i_5_95_cv_first; VaB n_5_95_only; VaB i_5_95_mean_only; VaB i_5_95_sd_only; VaB i_5_95_cv_only; VaB n_10_90_first; VaB i_10_90_mean_first; VaB i_10_90_sd_first; VaB i_10_90_cv_first; VaB n_10_90_only; VaB i_10_90_mean_only; VaB i_10_90_sd_only; VaB i_10_90_cv_only; VaB i_p05_first; VaB i_p10_first; VaB i_p25_first; VaB i_p50_first; VaB i_p75_first; VaB i_p90_first; VaB i_p95_first; VaB i_p05_only; VaB i_p10_only; VaB i_p25_only; VaB i_p50_only; VaB i_p75_only; VaB i_p90_only; VaB i_p95_only; VaB n_top25_first; VaB i_top25_mean_first; VaB i_top25_sd_first; VaB i_top25_cv_first; VaB n_top25_only; VaB i_top25_mean_only; VaB i_top25_sd_only; VaB i_top25_cv_only; }; ONF_MetricIntensity(); ONF_MetricIntensity(const ONF_MetricIntensity &other); QString getShortDescription() const; QString getDetailledDescription() const; /** * @brief Returns the metric configuration */ ONF_MetricIntensity::Config metricConfiguration() const; /** * @brief Change the configuration of this metric */ void setMetricConfiguration(const ONF_MetricIntensity::Config &conf); CT_AbstractConfigurableElement* copy() const; protected: void computeMetric(); void declareAttributes(); private: Config m_conf; }; #endif // ONF_METRICINTENSITY_H