| TerraLib 4.1

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

Functions
Moran Index Algorithm
Spatial Statistics Algorithms

## Functions

template<typename Set , typename Matrix >
double | TeMoranIndex2 (Set *elemSet, const double &mean, const double &var, Matrix *proxMatrix, int indexAttr=0)
template<typename Set >
double | TeMoranIndex (Set *elemSet, int indexZ, int indexWZ)
template<typename Set , typename Matrix >
double | TeGlobalMoranSignificance (Set *elemSet, Matrix *proxMatrix, int indexAttr, unsigned int permutationsNumber, double moranIndex)
template<typename Set >
void | TeMoranMap (Set *elemSet, int indexLISAMap, int indexBoxMap)

## Function Documentation

template<typename Set , typename Matrix >

double TeGlobalMoranSignificance | ( | Set * | elemSet,
|  | Matrix * | proxMatrix,
|  | int | indexAttr,
|  | unsigned int | permutationsNumber,
|  | double | moranIndex
| ) |  |

Calculates the Global Moran significance 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 deviations (Z)
  permutationsNumber | number of the permutations used to calculate the significance
  moranIndex | the Global Moran index

Returns:
  the Global Moran significance

template<typename Set >

double TeMoranIndex | ( | Set * | elemSet,
|  | int | indexZ,
|  | int | indexWZ
| ) |  |

Calculates the Local and the Global Moran index of an attribute for a set of objects

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)

Returns:
  the function adds one property to the objects: "MoranIndex" and returns the Global Moran index

template<typename Set , typename Matrix >

double TeMoranIndex2 | ( | Set * | elemSet,
|  | const double & | mean,
|  | const double & | var,
|  | Matrix * | proxMatrix,
|  | int | indexAttr = `0`
| ) |  |

Calculates the Global Moran index of an attribute for a set of objects

Parameters:

  elemSet | a set of objects
  mean | the global mean for the choosen the atrribute
  var | the variance for the choosen the atrribute
  proxMatrix | the proximity matrix of this object set
  indexAttr | the position in the objects vector of properties that contains the requested attribute

Returns:
  the Global Moran index

template<typename Set >

void TeMoranMap | ( | Set * | elemSet,
|  | int | indexLISAMap,
|  | int | indexBoxMap
| ) |  |

Classifies the objects based in the scatterplot of Moran index and its statistical significance

Parameters:

  elemSet | a set of objects
  indexLISAMap | the position in the objects vector of properties that contains the statistical significances of the moran local indexes (LISA)
  indexBoxMap | the position in the objects vector of properties that contains the classifications of the statistical significance of the moran local indexes

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines