TerraLib 4.1
TePDIMatrixFunctions Namespace Reference

This namespace contains functions for TePDIMatrix manipulation. More...

Functions

double GetCorrelation (const TePDIMatrix< double > &matrix1, const TePDIMatrix< double > &matrix2)
 Matrices correlation.
bool Abs (const TePDIMatrix< double > &inMatrix, TePDIMatrix< double > &absMatrix)
 Absolute values matrix generation.
bool WhereIsGreater (const TePDIMatrix< double > &inMatrix1, const TePDIMatrix< double > &inMatrix2, TePDIMatrix< double > &gtMatrix)
 Locates all inMatrix1 elements there are greater than inMatrix2 elements. These elements positions will be marked with value 1 in gtMatrix. The other positions will be marked with 0's.
bool Negate (const TePDIMatrix< double > &inMatrix, TePDIMatrix< double > &negMatrix)
 Locates all inMatrix1 zero elements. These elements positions will be marked with value 1 in negMatrix. The other positions will be marked with 0's.

Detailed Description

This namespace contains functions for TePDIMatrix manipulation.

Note:
THEY SHOLD NOT BE USED BY ANYONE. The support and interfaces can be changed in future. THIS IS FOR INTERNAL USE ONLY.
Author:
Emiliano F. Castejon <castejon@dpi.inpe.br>

Function Documentation

PDI_DLL bool TePDIMatrixFunctions::Abs ( const TePDIMatrix< double > &  inMatrix,
TePDIMatrix< double > &  absMatrix 
)

Absolute values matrix generation.

Parameters:
inMatrixInput matrix.
absMatrixOutput matrix.
Returns:
true if ok, false on errors.
Examples:
TePDIMatrixFunctions_test.cpp.
PDI_DLL double TePDIMatrixFunctions::GetCorrelation ( const TePDIMatrix< double > &  matrix1,
const TePDIMatrix< double > &  matrix2 
)

Matrices correlation.

Parameters:
matrix1Input matrix 1.
matrix2Input matrix 2.
Returns:
The correlation between the two matrix.
Note:
The calcule will only be made for elements that exists in both matrices.
Examples:
TePDIMatrixFunctions_test.cpp.
PDI_DLL bool TePDIMatrixFunctions::Negate ( const TePDIMatrix< double > &  inMatrix,
TePDIMatrix< double > &  negMatrix 
)

Locates all inMatrix1 zero elements. These elements positions will be marked with value 1 in negMatrix. The other positions will be marked with 0's.

Parameters:
inMatrixInput matrix.
negMatrixOutput matrix.
Returns:
true if ok, false on errors.
Examples:
TePDIMatrixFunctions_test.cpp.
PDI_DLL bool TePDIMatrixFunctions::WhereIsGreater ( const TePDIMatrix< double > &  inMatrix1,
const TePDIMatrix< double > &  inMatrix2,
TePDIMatrix< double > &  gtMatrix 
)

Locates all inMatrix1 elements there are greater than inMatrix2 elements. These elements positions will be marked with value 1 in gtMatrix. The other positions will be marked with 0's.

Parameters:
inMatrix1Input matrix.
inMatrix2Input matrix.
gtMatrixOutput matrix.
Returns:
true if ok, false on errors.
Examples:
TePDIMatrixFunctions_test.cpp.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines