![]() |
TerraLib 4.1
|
Class for compute the category with more occurences in the elements of a given iterator, using classes. More...
#include <TeComputeAttributeStrategies.h>
Public Member Functions | |
| TeMajorityCategoryStrategy (const map< string, string > &classesMap, TeAttrDataType defaultType=TeINT) | |
| Constructor. | |
| virtual | ~TeMajorityCategoryStrategy () |
| Destructor. | |
| virtual vector< TeProperty > | compute (Iterator first, Iterator last, const string &columnName) |
| Function to compute the category with more occurrences. | |
Protected Attributes | |
| map< string, string > | classesMap_ |
Class for compute the category with more occurences in the elements of a given iterator, using classes.
| TeMajorityCategoryStrategy< Iterator >::TeMajorityCategoryStrategy | ( | const map< string, string > & | classesMap, |
| TeAttrDataType | defaultType = TeINT |
||
| ) | [inline] |
Constructor.
| virtual TeMajorityCategoryStrategy< Iterator >::~TeMajorityCategoryStrategy | ( | ) | [inline, virtual] |
Destructor.
| virtual vector<TeProperty> TeMajorityCategoryStrategy< Iterator >::compute | ( | Iterator | first, |
| Iterator | last, | ||
| const string & | columnName | ||
| ) | [inline, virtual] |
Function to compute the category with more occurrences.
Reimplemented from TeComputeAttrStrategy< Iterator >.
map<string, string> TeMajorityCategoryStrategy< Iterator >::classesMap_ [protected] |