26 #ifndef __TERRALIB_CLASSIFICATION_INTERNAL_DUMMY_H
27 #define __TERRALIB_CLASSIFICATION_INTERNAL_DUMMY_H
30 #include "../common/AbstractParameters.h"
31 #include "../geometry/Coord2D.h"
32 #include "../geometry/Envelope.h"
33 #include "../geometry/Point.h"
34 #include "../geometry/Polygon.h"
35 #include "../raster/Grid.h"
52 template<
class TTRAIN,
class TCLASSIFY>
76 void reset() throw(te::cl::Exception);
90 bool train(TTRAIN& itBegin, TTRAIN& itEnd,
91 const std::vector<
unsigned int>& attributesIndices,
92 const std::vector<
unsigned int>& labels,
93 const
bool enableProgressInterface) throw(te::cl::Exception);
95 bool classify(TCLASSIFY& itBegin, TCLASSIFY& itEnd,
96 const std::vector<
unsigned int>& attributesIndices,
97 std::vector<
unsigned int>& classification,
98 const
bool enableProgressInterface) throw(te::cl::Exception);
109 template <class TTRAIN, class TCLASSIFY>
115 template <
class TTRAIN,
class TCLASSIFY>
120 template <
class TTRAIN,
class TCLASSIFY>
130 template <
class TTRAIN,
class TCLASSIFY>
136 template <
class TTRAIN,
class TCLASSIFY>
143 template <
class TTRAIN,
class TCLASSIFY>
149 template <
class TTRAIN,
class TCLASSIFY>
154 template <
class TTRAIN,
class TCLASSIFY>
163 TR_CL(
"The value of dummy must be at least 2.");
172 template<
class TTRAIN,
class TCLASSIFY>
174 const std::vector<unsigned int>& attributesIndices,
175 const std::vector<unsigned int>& labels,
176 const bool enableProgressInterface)
throw(te::cl::Exception)
181 template<
class TTRAIN,
class TCLASSIFY>
183 const std::vector<unsigned int>& attributesIndices,
184 std::vector<unsigned int>& classification,
185 const bool enableProgressInterface)
throw(te::cl::Exception)
187 TCLASSIFY it = itBegin;
198 #endif // __TERRALIB_CLASSIFICATION_INTERNAL_DUMMY_H
const Parameters & operator=(const Parameters ¶ms)
unsigned int m_dummyParameter
A dummy parameter.
bool initialize(const Parameters ¶ms)
bool train(TTRAIN &itBegin, TTRAIN &itEnd, const std::vector< unsigned int > &attributesIndices, const std::vector< unsigned int > &labels, const bool enableProgressInterface)
AbstractParameters()
Constructor.
Abstract parameters base interface.
Configuration flags for the Terrralib Classification module.
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state...
Dummy classifier (just for testing purposes).
AbstractParameters * clone() const
Create a clone copy of this instance.
An exception class for the Classification module.
bool m_isInitialized
True if this instance is initialized.
#define TR_CL(message)
It marks a string in order to get translated. This is a special mark used in the Terrralib Classifica...
Parameters m_parameters
Internal execution parameters.
bool classify(TCLASSIFY &itBegin, TCLASSIFY &itEnd, const std::vector< unsigned int > &attributesIndices, std::vector< unsigned int > &classification, const bool enableProgressInterface)