| TerraLib 4.1

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

Modules | Functions
Spatial Statistics Algorithms

## Modules

| Bayes Estimation from TerraLib's spatio-temporal containers
| Classes and structures to deal with measures of spatial variability
| Classes to deal with the adjust of semivariogram models
| Moran Index Algorithm
| Bayes Estimation from general containers

## Functions

template<typename Set , typename Matrix >
bool | TeLocalMean (Set *elemSet, Matrix *proxMatrix, int indexAttr=0)
template<typename Set , typename Matrix >
bool | TeZAndWZ (Set *elemSet, Matrix *proxMatrix, int indexAttr)
template<typename Set , typename Matrix >
bool | TeGStatistics (Set *elemSet, Matrix *proxMatrix, int indexAttr=0)
template<typename Set >
void | TeBoxMap (Set *elemSet, int indexZ, int indexWZ, double mean)
template<typename Set >
bool | TeLisaStatisticalSignificance (Set *elemSet, int indexZ, int indexLISA, int indexNeighNum, int permutationsNumber)
template<typename Set >
void | TeLisaMap (Set *elemSet, int indexSignifLISA, int)

## Detailed Description

TerraLib spatial statistics algorithms.

## Function Documentation

template<typename Set >

void TeBoxMap | ( | Set * | elemSet,
|  | int | indexZ,
|  | int | indexWZ,
|  | double | mean
| ) |  |

Classifies the objects in quadrants based in the scatterplot of moran index

Parameters:

  elemSet | a set of objects
  indexZ | the position in the objects vector of properties that contains the deviations (Z)
  indexWZ | the position in the objects vector of properties that contains the local mean deviations (WZ)
  mean | the global mean

Returns:
  the function adds one property to the objects: "BoxMap"

template<typename Set , typename Matrix >

bool TeGStatistics | ( | Set * | elemSet,
|  | Matrix * | proxMatrix,
|  | int | indexAttr = `0`
| ) |  |

Calculates the G and G* statistics of an attribute for a set of objects

Parameters:

  elemSet | a set of objects
  proxMatrix | the proximity matrix of this object set
  indexAttr | the position in the objects vector of properties that contains the requested attribute

Returns:
  the function adds two properties to the objects: "G" and "GStar"

template<typename Set >

void TeLisaMap | ( | Set * | elemSet,
|  | int | indexSignifLISA,
|  | int |
| ) |  |

Classifies the objects based in the statistical significance of the moran local indexes (LISA)

Parameters:

  elemSet | a set of objects
  indexSignifLISA | the position in the objects vector of properties that contains the statistical significances of the local moran indexes (LISA)
  permutationNumber | number of the permutations used to evaluate the significance

Returns:
  the function adds one property to the objects: "LISAMap"

template<typename Set >

bool TeLisaStatisticalSignificance | ( | Set * | elemSet,
|  | int | indexZ,
|  | int | indexLISA,
|  | int | indexNeighNum,
|  | int | permutationsNumber
| ) |  |

Evaluates the statistical significance of the moran local indexes (LISA)

Parameters:

  elemSet | a set of objects
  indexZ | the position in the objects vector of properties that contains the deviations (Z)
  indexLISA | the position in the objects vector of properties that contains the local moran indexes (LISA)
  indexNeighNum | the position in the objects vector of properties that contains the the numbers of neighbours of an object
  permutationsNumber | number of the permutations used to evaluate the significance

Returns:
  the function adds one property to the objects: "LISASig"

template<typename Set , typename Matrix >

bool TeLocalMean | ( | Set * | elemSet,
|  | Matrix * | proxMatrix,
|  | int | indexAttr = `0`
| ) |  |

Calculates the local mean of an attribute of and the number of neighbors for a set of objects

Parameters:

  elemSet | a set of objects
  proxMatrix | the proximity matrix of this object set
  indexAttr | the position in the objects vector of properties that contains the requested attribute

Returns:
  the function adds two properties to the objects: "Local Mean" and "NumNeighbors" and returns true of false

Examples:
  proxMatrixAndSpatialStatistics.cpp.

template<typename Set , typename Matrix >

bool TeZAndWZ | ( | Set * | elemSet,
|  | Matrix * | proxMatrix,
|  | int | indexAttr
| ) |  |

Calculates the standard deviation of an attribute and the local mean of the standard deviation for a set of objects

Parameters:

  elemSet | a set of objects
  proxMatrix | the proximity matrix of this object set
  indexAttr | the position in the objects vector of properties that contains the requested attribute

Returns:
  the function adds two properties to the objects: "Z" and "WZ" and returns true of false

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines