28 #ifndef __TERRALIB_SA_INTERNAL_KERNELFUNCTIONS_H
29 #define __TERRALIB_SA_INTERNAL_KERNELFUNCTIONS_H
32 #include "../../geometry/Geometry.h"
33 #include "../../raster/Raster.h"
34 #include "../../sam/rtree/Index.h"
35 #include "../Config.h"
44 namespace mem {
class DataSet; }
52 typedef std::map<int, std::pair<te::gm::Geometry*, double> >
KernelMap;
This file contains a class that represents the kernel parameters.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
An abstract class for raster data strucutures.
Class that represents the kernel output parameters.
TESAEXPORT void 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.
TESAEXPORT void 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.
TESAEXPORT double KernelTriangular(double tau, double distance, double intensity)
Kernel functions for Triangular type.
TESAEXPORT void GridKernelNormalize(te::sa::KernelInputParams *params, te::sa::KernelMap &kMap, te::rst::Raster *raster, double totKernel)
Normalizes kernel values based on type of estimation.
TESAEXPORT double KernelGeometricMean(te::sa::KernelMap &kMap)
Calculates the geometric mean from kernel map (intensity value) using log.
TESAEXPORT void 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.
TESAEXPORT double KernelRatioValue(te::sa::KernelOutputParams *params, double area, double kernelA, double kernelB)
Evaluates kernel ratio value.
TESAEXPORT void 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.
te::sam::rtree::Index< int > KernelTree
< Tree used to store the dataset geometries MBR and its id value
TESAEXPORT void 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.
std::map< int, std::pair< te::gm::Geometry *, double > > KernelMap
TESAEXPORT void 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.
TESAEXPORT double KernelNormal(double tau, double distance, double intensity)
Kernel functions for Normal type.
TESAEXPORT double 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.
TESAEXPORT double KernelQuartic(double tau, double distance, double intensity)
Kernel functions for Quartic type.
TESAEXPORT double KernelNegExponential(double tau, double distance, double intensity)
Kernel functions for Negative Exponential type.
TESAEXPORT double KernelUniform(double tau, double distance, double intensity)
Kernel functions for Uniform type.
TESAEXPORT void 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.
An utility struct for representing 2D coordinates.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.