| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeGroupingAlgorithms.h File Reference

This file contains some generic grouping algorithms (based on iterators) More...

`#include "TeDefines.h"`
`#include "TeSlice.h"`
`#include "TeUtils.h"`
`#include "TeDataTypes.h"`
`#include <math.h>`
`#include <time.h>`
`#include <algorithm>`

Go to the source code of this file.

## Functions

template<typename It >
void | TeMinimumValue (It begin, It end, vector< double > &minValue, double dummy=-9999.99, bool usesDummy=false)
| Finds the element with minimum value among the elements contained in a range of iterators.
template<typename It >
void | TeMaximumValue (It begin, It end, vector< double > &maxValue, double dummy=-9999.99, bool usesDummy=false)
| Finds the element with maximum value among the elements contained in a range of iterators.
TL_DLL void | TeGroupByEqualStep (double min, double max, int nstep, vector< TeSlice > &result, int precision=0)
| Defines the classes (slices) of a equal step grouping.
template<class iterator >
void | TeGroupByEqualStep (iterator begin, iterator end, int nstep, vector< TeSlice > &result, int precision=0, bool countElements=true)
| Groups a set of elements defined by a range of iterators in nstep groups, using Equal Step algorithm.
template<class iterator >
void | TeGroupByQuantil (iterator begin, iterator end, int nstep, vector< TeSlice > &result, int precision=0, bool countElements=true)
| Groups a set of elements defined by a range of iterators in nstep groups, using Quantil algorithm.
template<class iterator >
void | TeGroupByStdDev (iterator begin, iterator end, double ndev, vector< TeSlice > &result, string &rmean, int precision=0, bool countElements=true)
| Groups a set of elements defined by a range of iterators in ndev groups, using Standanrd deviation algorithm.
template<class iterator >
void | TeElemCountingBySlice (iterator begin, iterator end, vector< TeSlice > &result)
| Counts the number of elements, from a general container, per slice of a vector of slices.
TL_DLL void | TeGroupByUniqueValue (vector< string > &vec, TeAttrDataType tipo, vector< TeSlice > &result, int precision)
| Groups a set of elements in a vector of string using Unique Value algorithm.

## Detailed Description

This file contains some generic grouping algorithms (based on iterators)

## Function Documentation

TL_DLL void TeGroupByEqualStep | ( | double | min,
|  | double | max,
|  | int | nstep,
|  | vector< TeSlice > & | result,
|  | int | precision = `0`
| ) |  |

Defines the classes (slices) of a equal step grouping.

template<typename It >

void TeMaximumValue | ( | It | begin,
|  | It | end,
|  | vector< double > & | maxValue,
|  | double | dummy = `-9999.99`,
|  | bool | usesDummy = `false`
| ) |  |

Finds the element with maximum value among the elements contained in a range of iterators.

template<typename It >

void TeMinimumValue | ( | It | begin,
|  | It | end,
|  | vector< double > & | minValue,
|  | double | dummy = `-9999.99`,
|  | bool | usesDummy = `false`
| ) |  |

Finds the element with minimum value among the elements contained in a range of iterators.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines