| TerraLib 4.1

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

Classes | Typedefs | Functions
Statistical functions

## 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

## Typedef Documentation

typedef vector<double> stats

vector of statistics

typedef map<double, int> TeHistogram

map each value to its count: histogram

typedef vector<TeStatisticsDimension> TeStatisticsDimensionVect

vector of the statistics associated with the dimensions

## Function Documentation

template<typename T >

bool TeCalculateHistogram | ( | const T & | itBegin,
|  | const T & | itEnd,
|  | TeHistogram & | histOut
| ) |  |

Calculates the histrogram of a set of values kept in a data structure

Parameters:

  itBegin | the iterator to the begin of the data structure
  itEnd | the iterator to the end of the data structure
  histOut | to return the histogram

template<typename It >

bool TeCalculateStatistics | ( | const It & | itBegin,
|  | const It & | itEnd,
|  | TeStatisticValMap & | stat,
|  | int | dim
| ) |  |

Calculates the statistics of a specific dimension of a data structure

Parameters:

  itBegin | the iterator to the begin of the data structure
  itEnd | the iterator to the end of the data structure
  stat | to return the statistics
  dim | the dimension of the data structure

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`
| ) |  |

Calculates the statistics of all dimensions of a data structure

Parameters:

  itBegin | the iterator to the begin of the data structure
  itEnd | the iterator to the end of the data structure
  stat | to return the statistics

template<typename It >

bool TeCalculateStatistics | ( | const It & | itBegin,
|  | const It & | itEnd,
|  | TeStatisticStringValMap & | stat,
|  | const double & | dummy = `255`,
|  | const bool & | useDummy = `true`
| ) |  |

Calculates the statistics of a string data structure

Parameters:

  itBegin | the iterator to the begin of the data structure
  itEnd | the iterator to the end of the data structure
  stat | to return the statistics

Calculates the statistics of a data structure

Parameters:

  itBegin | the iterator to the begin of the data structure
  itEnd | the iterator to the end of the data structure
  stat | to return the statistics

template<typename It >

bool TeDeviation | ( | It | begin,
|  | It | end,
|  | It | result,
|  | double | mean
| ) |  |

Calculates the deviations in relation to mean.

Examples:
  proxMatrixAndSpatialStatistics.cpp.

template<typename iteratorSet >

bool TeDeviation | ( | iteratorSet | begin,
|  | iteratorSet | end,
|  | double | mean,
|  | int | index = `0`
| ) |  |

calculates the deviations in relation to mean

template<typename It >

double TeFirstMoment | ( | It | begin,
|  | It | end,
|  | int | dim
| ) |  |

Calculates the mean (first moment) of the elements of a specific dimension.

Examples:
  proxMatrixAndSpatialStatistics.cpp.

template<typename It >

double TeFirstMoment | ( | It | begin,
|  | It | end
| ) |  |

Calculates the mean (first moment) of the elements.

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 >

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 >

double TeSum | ( | It | begin,
|  | It | end
| ) |  |

Return the sum of the elements.

template<typename It >

double TeSum | ( | It | begin,
|  | It | end,
|  | int | dim
| ) |  |

Returns the sum of the elements of a specific dimension.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines