KernelFunctions.h File Reference

This file contains a functions used by the kernel operation. More...

#include "../../geometry/Geometry.h"
#include "../../raster/Raster.h"
#include "../../sam/rtree/Index.h"
#include "../Config.h"
#include "KernelParams.h"
#include <map>

Go to the source code of this file.

Namespaces

 te
 URI C++ Library.
 
 te::mem
 Namespace for the memory data source of TerraLib.
 
 te::sa
 Namespace for the TerraLib SA module.
 

Typedefs

typedef std::map< int, std::pair< te::gm::Geometry *, double > > te::sa::KernelMap
 
typedef te::sam::rtree::Index< int > te::sa::KernelTree
 < Tree used to store the dataset geometries MBR and its id value More...
 

Functions

TESAEXPORT void te::sa::DataSetAdaptRadiusKernel (te::sa::KernelInputParams *params, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::mem::DataSet *ds, int kernelIdx, int geomIdx)
 Evaluates kernel value using a dataset as output data and a adaptative value for radius. More...
 
TESAEXPORT void te::sa::DataSetKernelNormalize (te::sa::KernelInputParams *params, te::sa::KernelMap &kMap, te::mem::DataSet *ds, int kernelIdx, int geomIdx, double totKernel)
 Normalizes kernel values based on type of estimation. More...
 
TESAEXPORT void te::sa::DataSetRatioKernel (te::sa::KernelOutputParams *params, te::mem::DataSet *dsA, te::mem::DataSet *dsB, te::mem::DataSet *dsOut, int kernelIdx, int geomIdx)
 Evaluates kernel ratio value using a dataset as output data. More...
 
TESAEXPORT void te::sa::DataSetStatRadiusKernel (te::sa::KernelInputParams *params, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::mem::DataSet *ds, int kernelIdx, int geomIdx, double radius)
 Evaluates kernel value using a dataset as output data and a fixed value for radius. More...
 
TESAEXPORT void te::sa::GridAdaptRadiusKernel (te::sa::KernelInputParams *params, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::rst::Raster *raster)
 Evaluates kernel value using a raster as output data and a adaptative value for radius. More...
 
TESAEXPORT void te::sa::GridKernelNormalize (te::sa::KernelInputParams *params, te::sa::KernelMap &kMap, te::rst::Raster *raster, double totKernel)
 Normalizes kernel values based on type of estimation. More...
 
TESAEXPORT void te::sa::GridRatioKernel (te::sa::KernelOutputParams *params, te::rst::Raster *rasterA, te::rst::Raster *rasterB, te::rst::Raster *rasterOut)
 Evaluates kernel ratio value using a raster as output data. More...
 
TESAEXPORT void te::sa::GridStatRadiusKernel (te::sa::KernelInputParams *params, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::rst::Raster *raster, double radius)
 Evaluates kernel value using a raster as output data and a fixed value for radius. More...
 
TESAEXPORT double te::sa::KernelGeometricMean (te::sa::KernelMap &kMap)
 Calculates the geometric mean from kernel map (intensity value) using log. More...
 
TESAEXPORT double te::sa::KernelNegExponential (double tau, double distance, double intensity)
 Kernel functions for Negative Exponential type. More...
 
TESAEXPORT double te::sa::KernelNormal (double tau, double distance, double intensity)
 Kernel functions for Normal type. More...
 
TESAEXPORT double te::sa::KernelQuartic (double tau, double distance, double intensity)
 Kernel functions for Quartic type. More...
 
TESAEXPORT double te::sa::KernelRatioValue (te::sa::KernelOutputParams *params, double area, double kernelA, double kernelB)
 Evaluates kernel ratio value. More...
 
TESAEXPORT double te::sa::KernelTriangular (double tau, double distance, double intensity)
 Kernel functions for Triangular type. More...
 
TESAEXPORT double te::sa::KernelUniform (double tau, double distance, double intensity)
 Kernel functions for Uniform type. More...
 
TESAEXPORT double te::sa::KernelValue (te::sa::KernelInputParams *params, te::sa::KernelMap &kMap, double radius, te::gm::Coord2D &coord, std::vector< int > idxVec)
 Evaluates kernel value of events with intensity. More...
 

Detailed Description

This file contains a functions used by the kernel operation.

Adapted from TerraLib4.

Definition in file KernelFunctions.h.