GroupingAlgorithms.h File Reference

This file contains functions containing the algorithms for grouping values. More...

#include "Config.h"
#include "../core/translator/Translator.h"
#include "../common/StringUtils.h"
#include "../fe/Utils.h"
#include "../se/Description.h"
#include "../se/Rule.h"
#include <string>
#include <vector>
#include <cmath>
#include <stdlib.h>

Go to the source code of this file.

Namespaces

 te
 TerraLib.
 
 te::map
 Namespace for the Map Tools module of TerraLib.
 

Macros

#define MAX(a, b)   ( (a>b) ? a : b )
 Macro that returns max between two values. More...
 
#define MIN(a, b)   ( (a<b) ? a : b )
 Macro that returns min between two values. More...
 

Functions

TEMAPEXPORT double te::map::AdjustToPrecision (double val, int precision, bool reduce=false)
 It adjusts a value to the precision specified. More...
 
template<class iterator >
void te::map::GroupingByEqualSteps (std::string attrName, iterator begin, iterator end, int nSteps, std::vector< te::se::Rule *> &rules, int precision=0)
 It groups the values defined by a range of iterators using the equal steps algorithm. More...
 
template<class iterator >
void te::map::GroupingByQuantil (std::string attrName, iterator begin, iterator end, int nSteps, std::vector< te::se::Rule *> &rules, int precision=0)
 It groups the values defined by a range of iterators using the quantil algorithm. More...
 
template<class iterator >
void te::map::GroupingByStdDeviation (std::string attrName, iterator begin, iterator end, double nDevs, std::vector< te::se::Rule *> &rules, std::string &meanTitle, int precision=0)
 It groups the values defined by a range of iterators using the standard deviation algorithm. More...
 
TEMAPEXPORT void te::map::GroupingByUniqueValues (std::string attrName, std::vector< std::string > &inputValues, int dataType, std::vector< te::se::Rule *> &rules, int precision)
 It groups the values using the unique value algorithm. More...
 

Detailed Description

This file contains functions containing the algorithms for grouping values.

Definition in file GroupingAlgorithms.h.

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    ( (a>b) ? a : b )

Macro that returns max between two values.

Definition at line 50 of file GroupingAlgorithms.h.

Referenced by te::map::GroupingByEqualSteps(), and te::map::GroupingByStdDeviation().

◆ MIN

#define MIN (   a,
 
)    ( (a<b) ? a : b )

Macro that returns min between two values.

Definition at line 46 of file GroupingAlgorithms.h.

Referenced by te::map::GroupingByEqualSteps(), and te::map::GroupingByStdDeviation().