| TerraLib 4.1

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

- File List
- File Members

Classes | Typedefs | Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeStatistics.h File Reference

This file contains functions for calculate statistics. More...

`#include "TeDataTypes.h"`
`#include <string>`
`#include <map>`

Go to the source code of this file.

## Classes

struct | TeStatisticsDimension
| Associate a statistics set for each dimension. More...

## Typedefs

typedef vector< double > | stats
| vector of statistics
typedef vector < TeStatisticsDimension > | TeStatisticsDimensionVect
| vector of the statistics associated with the dimensions
typedef map< double, int > | TeHistogram
| map each value to its count: histogram

## Functions

template<typename T >
bool | TeCalculateHistogram (const T &itBegin, const T &itEnd, TeHistogram &histOut)
template<typename It >
bool | TeCalculateStatistics (const It &itBegin, const It &itEnd, TeStatisticValMap &stat, int dim)
template<typename It >
bool | TeCalculateStatistics (const It &itBegin, const It &itEnd, TeStatisticStringValMap &stat, const double &dummy=255, const bool &useDummy=true)
template<typename It >
bool | TeCalculateStatistics (It &itBegin, It &itEnd, TeStatisticsDimensionVect &stat)
template<typename It >
bool | TeCalculateStatistics (It &itBegin, It &itEnd, TeStatisticsDimensionVect &stat, std::vector< double > dummy, const bool &useDummy=true)
template<typename It >
double | TeSum (It begin, It end, int dim)
| Returns the sum of the elements of a specific dimension.
template<typename It >
double | TeSum (It begin, It end)
| Return the sum of the elements.
template<typename It >
double | TeFirstMoment (It begin, It end, int dim)
| Calculates the mean (first moment) of the elements of a specific dimension.
template<typename It >
double | TeFirstMoment (It begin, It end)
| Calculates the mean (first moment) of the elements.
template<typename It >
double | TeSecondMoment (It begin, It end, double mean)
| Calculates the second moment.
template<typename It >
double | TeSecondMoment (It begin, It end, double mean, int dim)
| Calculates the second moment.
template<typename It , typename T >
bool | TeMeanVector (It begin, It end, T &result)
| calculates the vector with the means of the attributs
template<typename It >
bool | TeDeviation (It begin, It end, It result, double mean)
| Calculates the deviations in relation to mean.
template<typename iteratorSet >
bool | TeDeviation (iteratorSet begin, iteratorSet end, double mean, int index=0)
| calculates the deviations in relation to mean

## Detailed Description

This file contains functions for calculate statistics.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines