NumericStatisticalSummary.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/statistics/NumericStatisticsSummary.h
22 
23  \brief A structure to hold the set of statistics from a set of numerical values.
24 */
25 
26 #ifndef __TERRALIB_STATISTICAL_CORE_INTERNAL_NUMERICSTATISTICALSUMMARY_H
27 #define __TERRALIB_STATISTICAL_CORE_INTERNAL_NUMERICSTATISTICALSUMMARY_H
28 
29 // TerraLib
30 #include "Config.h"
31 
32 // STL
33 #include <complex>
34 #include <map>
35 #include <vector>
36 
37 namespace te
38 {
39  namespace stat
40  {
41  /*!
42  \struct NumericStatisticalSummary
43 
44  \brief A structure to hold the set of statistics from a set of numerical values.
45  */
47  {
48  public:
49 
50  /*! \brief Constructor. */
52 
53  /*!
54  \brief Copy constructor.
55 
56  \param rhs The right-hand-side copy used to copy from.
57  */
59 
60  /*! \brief Destructor. */
62 
63  /*!
64  \brief Assignment operator.
65 
66  \param rhs The right-hand-side copy used to copy from.
67 
68  \return A reference to this object.
69  */
71 
72  /*! \brief Clear the structure. */
73  void clear();
74 
75  public:
76 
77  double m_minVal;
78  double m_maxVal;
79  double m_mean;
80  double m_sum;
81  int m_count;
84  double m_kernel;
85  double m_variance;
86  double m_skewness;
87  double m_kurtosis;
88  double m_amplitude;
89  double m_median;
90  double m_varCoeff;
91  std::vector<double> m_mode;
92  std::map < double, double > m_percentEachClass;
93 
94  };
95 
96  } // end namespace stat
97 } // end namespace te
98 
99 #endif // __TERRALIB_STATISTICAL_CORE_INTERNAL_NUMERICSTATISTICALSUMMARY_H
A structure to hold the set of statistics from a set of numerical values.
std::map< double, double > m_percentEachClass
URI C++ Library.
#define TESTATEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
Configuration flags for the Terrralib Statistic module.