| TerraLib 4.1

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

Functions
Generic Algorithms to do grouping

## Functions

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

A set of of generic functions to do grouping

## Function Documentation

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.

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.

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.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines