Loading...
Searching...
No Matches
BayesParams.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/sa/core/BayesParams.h
22
23 \brief This file contains a class that represents the Bayes parameters.
24
25 \reference Adapted from TerraLib4.
26*/
27
28#ifndef __TERRALIB_SA_INTERNAL_BAYESPARAMS_H
29#define __TERRALIB_SA_INTERNAL_BAYESPARAMS_H
30
31// Terralib Includes
32#include "../../dataaccess/dataset/DataSet.h"
33#include "../../dataaccess/dataset/DataSetType.h"
34#include "../../dataaccess/datasource/DataSource.h"
35#include "../core/GeneralizedProximityMatrix.h"
36#include "../Config.h"
37#include "../Enums.h"
38
39// STL Includes
40#include <map>
41#include <memory>
42#include <string>
43
44namespace te
45{
46 namespace sa
47 {
48 /*!
49 \class BayesInputParams
50
51 \brief Class that represents the Bayes input parameters.
52
53 \sa BayesGlobalOperation BayesLocalOperation
54 */
55
57 {
58 public:
59
60 /*! \brief Default constructor. */
62 {
63 m_rate = 1.;
64 m_eventAttrName = "";
65 m_populationAttrName = "";
66 }
67
68 /*! \brief Virtual destructor. */
70 {
71 }
72
73 public:
74
75 std::unique_ptr<te::da::DataSetType> m_dsType; //!< Attribute used to access the data set metadata
76 std::unique_ptr<te::da::DataSet> m_ds; //!< Attribute with data set
77 std::unique_ptr<te::sa::GeneralizedProximityMatrix> m_gpm; //!< Attribute with gpm information (local bayes)
78
79 std::string m_eventAttrName; //!< Attribute from dataset with event information.
80 std::string m_populationAttrName; //!< Attribute from dataset with population information.
81 std::string m_gpmAttrLink; //!< Attribute from dataset that was used to generate the gpm.
82
83 double m_rate; //!< Attribute with multiplicative rate correction
84 };
85
86 /*!
87 \class BayesOutputParams
88
89 \brief Class that represents the Bayes output parameters.
90
91 \sa BayesGlobalOperation BayesLocalOperation
92 */
93
95 {
96 public:
97
98 /*! \brief Default constructor. */
100 {
101 m_outputDataSetName = "";
102 }
103
104 /*! \brief Virtual destructor. */
106 {
107 }
108
109 public:
110
111 te::da::DataSourcePtr m_ds; //!< Pointer to the output datasource.
112
113 std::string m_outputDataSetName; //!< Attribute that defines the output dataset name
114 };
115 } // end namespace sa
116} // end namespace te
117
118#endif //__TERRALIB_SA_INTERNAL_BAYESPARAMS_H
Class that represents the Bayes input parameters.
Definition: BayesParams.h:57
double m_rate
Attribute with multiplicative rate correction.
Definition: BayesParams.h:83
std::unique_ptr< te::da::DataSet > m_ds
Attribute with data set.
Definition: BayesParams.h:76
BayesInputParams()
Default constructor.
Definition: BayesParams.h:61
std::string m_gpmAttrLink
Attribute from dataset that was used to generate the gpm.
Definition: BayesParams.h:81
~BayesInputParams()
Virtual destructor.
Definition: BayesParams.h:69
std::unique_ptr< te::sa::GeneralizedProximityMatrix > m_gpm
Attribute with gpm information (local bayes)
Definition: BayesParams.h:77
std::string m_eventAttrName
Attribute from dataset with event information.
Definition: BayesParams.h:79
std::unique_ptr< te::da::DataSetType > m_dsType
Attribute used to access the data set metadata.
Definition: BayesParams.h:75
std::string m_populationAttrName
Attribute from dataset with population information.
Definition: BayesParams.h:80
Class that represents the Bayes output parameters.
Definition: BayesParams.h:95
~BayesOutputParams()
Virtual destructor.
Definition: BayesParams.h:105
te::da::DataSourcePtr m_ds
Pointer to the output datasource.
Definition: BayesParams.h:111
BayesOutputParams()
Default constructor.
Definition: BayesParams.h:99
std::string m_outputDataSetName
Attribute that defines the output dataset name.
Definition: BayesParams.h:113
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
TerraLib.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:133