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>
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) ;
95 bool classify(TCLASSIFY& itBegin, TCLASSIFY& itEnd,
96 const std::vector<unsigned int>& attributesIndices,
97 std::vector<unsigned int>& classification,
98 const bool enableProgressInterface) ;
109template <
class TTRAIN,
class TCLASSIFY>
115template <
class TTRAIN,
class TCLASSIFY>
120template <
class TTRAIN,
class TCLASSIFY>
130template <
class TTRAIN,
class TCLASSIFY>
133 m_dummyParameter = 0;
136template <
class TTRAIN,
class TCLASSIFY>
143template <
class TTRAIN,
class TCLASSIFY>
149template <
class TTRAIN,
class TCLASSIFY>
154template <
class TTRAIN,
class TCLASSIFY>
163 TE_TR(
"The value of dummy must be at least 2.");
172template<
class TTRAIN,
class TCLASSIFY>
174 const std::vector<unsigned int>& attributesIndices,
175 const std::vector<unsigned int>& labels,
176 const bool enableProgressInterface)
181template<
class TTRAIN,
class TCLASSIFY>
183 const std::vector<unsigned int>& attributesIndices,
184 std::vector<unsigned int>& classification,
185 const bool enableProgressInterface)
187 TCLASSIFY it = itBegin;
#define TE_TR(message)
It marks a string in order to get translated.
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
const Parameters & operator=(const Parameters ¶ms)
unsigned int m_dummyParameter
A dummy parameter.
AbstractParameters * clone() const
Create a clone copy of this instance.
Dummy classifier (just for testing purposes).
bool m_isInitialized
True if this instance is initialized.
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)
bool train(TTRAIN &itBegin, TTRAIN &itEnd, const std::vector< unsigned int > &attributesIndices, const std::vector< unsigned int > &labels, const bool enableProgressInterface)
bool initialize(const Parameters ¶ms)
Abstract parameters base interface.
AbstractParameters()
Constructor.
Proxy configuration file for TerraView (see terraview_config.h).
An exception class for the XML module.