| 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/stat/TeKMeansGrouping.h File Reference

This file contains functions related to the K Means clustering algorithm. More...

`#include "TeGroupingAlgorithms.h"`

Go to the source code of this file.

## Functions

template<typename I , typename T >
int | TeMinimumDistance (I it, T &centroides)
template<typename I , typename T >
double | TeEuclidianDistance (I it, T &centroide)
template<typename T >
void | Initialize (T &centroide, vector< double > &minValue, vector< double > &maxValue)
template<typename T >
bool | CheckConvergence (T &toUpdate, T &newCentroides, double limiar)
template<typename It , typename C >
void | ReCalculate (It it, C &nearest)
template<typename It , typename C >
void | TeKMeans (It begin, It end, C &result, double conv)
template<typename ItIn , typename C , typename ItOut >
void | TeEuclidianClassify (ItIn begin, ItIn end, ItOut &result, C &kmeans)

## Detailed Description

This file contains functions related to the K Means clustering algorithm.

## Function Documentation

template<typename T >

bool CheckConvergence | ( | T & | toUpdate,
|  | T & | newCentroides,
|  | double | limiar
| ) |  |

template<typename T >

void Initialize | ( | T & | centroide,
|  | vector< double > & | minValue,
|  | vector< double > & | maxValue
| ) |  |

template<typename It , typename C >

void ReCalculate | ( | It | it,
|  | C & | nearest
| ) |  |

template<typename ItIn , typename C , typename ItOut >

void TeEuclidianClassify | ( | ItIn | begin,
|  | ItIn | end,
|  | ItOut & | result,
|  | C & | kmeans
| ) |  |

template<typename I , typename T >

double TeEuclidianDistance | ( | I | it,
|  | T & | centroide
| ) |  |

template<typename It , typename C >

void TeKMeans | ( | It | begin,
|  | It | end,
|  | C & | result,
|  | double | conv
| ) |  |

template<typename I , typename T >

int TeMinimumDistance | ( | I | it,
|  | T & | centroides
| ) |  |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines