This file contains functions containing the algorithms for grouping values. More...
#include "Config.h"#include "../common/StringUtils.h"#include "../maptools/GroupingItem.h"#include <string>#include <vector>#include <math.h>#include <stdlib.h>Go to the source code of this file.
Namespaces | |
| te | |
| URI C++ Library. | |
| 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 (iterator begin, iterator end, int nSteps, std::vector< te::map::GroupingItem * > &legend, int precision=0, bool countElements=true) |
| It groups the values defined by a range of iterators using the equal steps algorithm. More... | |
| template<class iterator > | |
| void | te::map::GroupingByQuantil (iterator begin, iterator end, int nSteps, std::vector< te::map::GroupingItem * > &legend, int precision=0, bool countElements=true) |
| It groups the values defined by a range of iterators using the quantil algorithm. More... | |
| template<class iterator > | |
| void | te::map::GroupingByStdDeviation (iterator begin, iterator end, double nDevs, std::vector< te::map::GroupingItem * > &legend, std::string &meanTitle, int precision=0, bool countElements=true) |
| It groups the values defined by a range of iterators using the standard deviation algorithm. More... | |
| TEMAPEXPORT void | te::map::GroupingByUniqueValues (std::vector< std::string > &inputValues, int dataType, std::vector< te::map::GroupingItem * > &legend, int precision) |
| It groups the values using the unique value algorithm. More... | |
| template<class iterator > | |
| void | te::map::SetNumberOfElementsByLegendItem (iterator begin, iterator end, std::vector< te::map::GroupingItem * > &legend) |
| It sets the number of elements belonging to the range of values associated to each legend item. More... | |
This file contains functions containing the algorithms for grouping values.
Definition in file GroupingAlgorithms.h.
| #define MAX | ( | a, | |
| b | |||
| ) | ( (a>b) ? a : b ) |
Macro that returns max between two values.
Definition at line 47 of file GroupingAlgorithms.h.
Referenced by te::rp::ConvertIHS2RGB(), te::rp::ArithmeticOperations::execute(), te::rp::Segmenter::execute(), te::rp::TiePointsLocator::features2Tiff(), te::rp::Segmenter::genImageHCutOffProfile(), te::rp::Segmenter::genImageVCutOffProfile(), te::map::GroupingByEqualSteps(), te::map::GroupingByStdDeviation(), te::rp::TiePointsLocator::loadRasterData(), te::rp::Matrix< TemplateElementType >::reset(), te::rp::IHSFusion::saveIHSData(), and te::rp::Segmenter::updateBlockCutOffProfiles().
| #define MIN | ( | a, | |
| b | |||
| ) | ( (a<b) ? a : b ) |
Macro that returns min between two values.
Definition at line 43 of file GroupingAlgorithms.h.
Referenced by te::rp::Blender::blendIntoRaster1(), te::rp::ConvertIHS2RGB(), te::rp::ArithmeticOperations::execute(), te::rp::Segmenter::execute(), te::rp::TiePointsLocator::features2Tiff(), te::rp::Segmenter::genImageHCutOffProfile(), te::rp::Segmenter::genImageVCutOffProfile(), te::map::GroupingByEqualSteps(), te::map::GroupingByStdDeviation(), te::rp::Matrix< TemplateElementType >::reset(), te::rp::IHSFusion::saveIHSData(), and te::rp::Segmenter::updateBlockCutOffProfiles().