| TerraLib 4.1

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
TeInterpolationAlgorithms< ADAPTATIVEKDTREE > Class Template Reference
Interpolation Algorithms and Data Structures

Class that supports several types of interpolation methods. More...

`#include <TeInterpolation.h>`

List of all members.

## Public Member Functions

| TeInterpolationAlgorithms (const ADAPTATIVEKDTREE &kd)
| Constructor.
| ~TeInterpolationAlgorithms ()
| Destructor.
double | nearestNeighbor (const kdKey &key)
| Returns the nearest neighbor value.
double | avgNearestNeighbor (const kdKey &key, const unsigned int &numberOfNeighbors)
| Simple Average of Nearest Neighbors. If an error occur returns -TeMAXFLOAT.
double | distWeightAvgNearestNeighbor (const kdKey &key, const unsigned int &numberOfNeighbors, const int &powValue)
| Weight Average of Nearest Neighbors. If an error occur returns -TeMAXFLOAT.
double | boxAvg (const TeBox &box)
| Simple Average of Elements in Box. If an error occur returns -TeMAXFLOAT.
double | boxDistWeightAvg (const kdKey &key, const TeBox &box, const int &powValue)
| Distance Weight Average of Elements in Box. If an error occur returns -TeMAXFLOAT.

## Protected Types

typedef ADAPTATIVEKDTREE::kdKey | kdKey
typedef ADAPTATIVEKDTREE::kdDataItem | kdDataItem
typedef ADAPTATIVEKDTREE::kdNode | kdNode

## Protected Member Functions

void | fillNNVector (vector< kdDataItem > &report, const unsigned int &numberOfNeighbors) const
| Fills the nearest neighbour vector with default values.

## Protected Attributes

const ADAPTATIVEKDTREE & | kd_
| reference to an adptative kdtree

## Detailed Description

### template<class ADAPTATIVEKDTREE>
class TeInterpolationAlgorithms< ADAPTATIVEKDTREE >

Class that supports several types of interpolation methods.

Given a KdTree and a key, choose a method of interpolation.

WARNING: 1. This class MUST BE USED ONLY BY in the routines below (TeCellInterpolate and TeRasterInterpolate) and should NOT be used by anyone because the support and interfaces can be changed in future. THIS IS FOR INTERNAL USE ONLY.

2. As in simple average as in weight average, if all neighbours aren't find the calculus considerates the number of found neighbours.

3. If an unexpected situation occurs so -TeMAXFLOAT is returned.

4. If a sample exist in the same position of a key, so the sample value is returned, i.e., not all neighbours are considered.

## Member Typedef Documentation

template<class ADAPTATIVEKDTREE >

typedef ADAPTATIVEKDTREE::kdDataItem TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::kdDataItem`[protected]`

template<class ADAPTATIVEKDTREE >

typedef ADAPTATIVEKDTREE::kdKey TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::kdKey`[protected]`

template<class ADAPTATIVEKDTREE >

typedef ADAPTATIVEKDTREE::kdNode TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::kdNode`[protected]`

## Constructor & Destructor Documentation

template<class ADAPTATIVEKDTREE >

TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::TeInterpolationAlgorithms | ( | const ADAPTATIVEKDTREE & | kd | ) | `[inline]`

Constructor.

template<class ADAPTATIVEKDTREE >

TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::~TeInterpolationAlgorithms | ( |  | ) | `[inline]`

Destructor.

## Member Function Documentation

template<class ADAPTATIVEKDTREE >

double TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::avgNearestNeighbor | ( | const kdKey & | key,
|  | const unsigned int & | numberOfNeighbors
| ) |  | `[inline]`

Simple Average of Nearest Neighbors. If an error occur returns -TeMAXFLOAT.

template<class ADAPTATIVEKDTREE >

double TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::boxAvg | ( | const TeBox & | box | ) | `[inline]`

Simple Average of Elements in Box. If an error occur returns -TeMAXFLOAT.

template<class ADAPTATIVEKDTREE >

double TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::boxDistWeightAvg | ( | const kdKey & | key,
|  | const TeBox & | box,
|  | const int & | powValue
| ) |  | `[inline]`

Distance Weight Average of Elements in Box. If an error occur returns -TeMAXFLOAT.

template<class ADAPTATIVEKDTREE >

double TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::distWeightAvgNearestNeighbor | ( | const kdKey & | key,
|  | const unsigned int & | numberOfNeighbors,
|  | const int & | powValue
| ) |  | `[inline]`

Weight Average of Nearest Neighbors. If an error occur returns -TeMAXFLOAT.

template<class ADAPTATIVEKDTREE >

void TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::fillNNVector | ( | vector< kdDataItem > & | report,
|  | const unsigned int & | numberOfNeighbors
| ) |  | const`[inline, protected]`

Fills the nearest neighbour vector with default values.

template<class ADAPTATIVEKDTREE >

double TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::nearestNeighbor | ( | const kdKey & | key | ) | `[inline]`

Returns the nearest neighbor value.

## Member Data Documentation

template<class ADAPTATIVEKDTREE >

const ADAPTATIVEKDTREE& TeInterpolationAlgorithms< ADAPTATIVEKDTREE >::kd_`[protected]`

reference to an adptative kdtree

The documentation for this class was generated from the following file:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/functions/TeInterpolation.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines