Loading...
Searching...
No Matches
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

namespace  te
 TerraLib.
 
namespace  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.
 
#define MIN(a, b)   ( (a<b) ? a : b )
 Macro that returns min between two values.
 

Functions

TEMAPEXPORT double te::map::AdjustToPrecision (double val, int precision, bool reduce=false)
 It adjusts a value to the precision specified.
 
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.
 
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.
 
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.
 
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.
 

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.

◆ MIN

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

Macro that returns min between two values.

Definition at line 46 of file GroupingAlgorithms.h.