| TerraLib 4.1

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

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/stat/TeKernelParams.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 Exploring and analysis of geographical data using TerraLib and TerraView
    00003 Copyright � 2003-2007 INPE and LESTE/UFMG.
    00004
    00005 Partially funded by CNPq - Project SAUDAVEL, under grant no. 552044/2002-4,
    00006 SENASP-MJ and INPE
    00007
    00008 This program is free software; you can redistribute it and/or
    00009 modify it under the terms of the GNU Lesser General Public
    00010 License as published by the Free Software Foundation; either
    00011 version 2.1 of the License, or (at your option) any later version.
    00012
    00013 This program is distributed hoping it will be useful, however, WITHOUT ANY
    00014 WARRANTIES; neither to the implicit warranty of MERCHANTABILITY OR SUITABILITY FOR
    00015 AN SPECIFIC FINALITY. Consult the GNU General Public License for more details.
    00016
    00017 You must have received a copy of the GNU General Public License with this program.
    00018 In negative case, write to the Free Software Foundation, Inc. in the following
    00019 address: 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
    00020 ***********************************************************************************/
    00024 #ifndef __TERRALIB_INTERNAL_KERNELPARAMS_H
    00025 #define __TERRALIB_INTERNAL_KERNELPARAMS_H
    00026
    00027 #include "TeStatDefines.h"
    00028 #include "../kernel/TeUtils.h"
    00029
    00030 #include <string>
    00031 #include <vector>
    00032 using namespace std;
    00033
    00035 enum TeKernelFunctionType
    00036  {TeKQuartic, TeKNormal, TeKUniform, TeKTriangular, TeKNegExponential};
    00037
    00038
    00040 enum TeKernelComputeType
    00041 {TeKDensity, TeKMovingAverage, TeKProbability};
    00042
    00043 enum TeKernelCombinationType
    00044 {TeKRatio, TeKLogRatio, TeAbsDifference, TeRelDifference, TeAbsSum, TeRelSum};
    00045
    00046
    00050 struct STAT_DLL TeKernelParams
    00051 {
    00052            //first event theme
    00053            int                                                               eventThemeId1_;                             // event theme id
    00054            string                                                 eventThemeName1_;                // event theme name
    00055            string                                                 intensityAttrName1_;  // intensity attribute name
    00056            string                                                 intensityAttrTable1_; // table name that keeps the intensity attribute
    00057            TeKernelFunctionType  kernelFunction1_;                // kernel function
    00058            TeKernelComputeType              computeType1_;
    00059            double                                                 radiusValue1_;                              // radius value if the kernel is not adaptative
    00060
    00061            TeKernelCombinationType          combinationType_;
    00062
    00063            //second event theme (if Kernel ratio)
    00064            int                                                               eventThemeId2_;                             // event theme id
    00065            string                                                 eventThemeName2_;                // event theme name
    00066            string                                                 intensityAttrName2_;  // intensity attribute name
    00067            string                                                 intensityAttrTable2_; // table name that keeps the intensity attribute
    00068            TeKernelFunctionType  kernelFunction2_;                // kernel function
    00069            TeKernelComputeType              computeType2_;
    00070            double                                                 radiusValue2_;                              // radius value if the kernel is not adaptative
    00071
    00072            //informations about the kernel result
    00073            int                                                               supportThemeId_;                 // support theme id
    00074            string                                                 supportThemeName_;               // support theme name
    00075            string                                                 supportThemeTable_;              // support theme table that keeps the kernel results
    00076            string                                                 supportThemeAttr_;               // attribute name of the support theme table that keeps the kernel results
    00077            int                                                               generatedLayerId_;               // id of the generated layer (when it�s raster)
    00078            string                                                 generatedLayerName_;  // name of the generated layer (when it�s raster)
    00079
    00081            TeKernelParams():
    00082                       eventThemeId1_(0),
    00083                       eventThemeName1_(""),
    00084                       intensityAttrName1_(""),
    00085                       intensityAttrTable1_(""),
    00086                       kernelFunction1_(TeKQuartic),
    00087                       computeType1_(TeKDensity),
    00088                       radiusValue1_(0.0),
    00089                       combinationType_(TeKRatio),
    00090                       eventThemeId2_(0),
    00091                       eventThemeName2_(""),
    00092                       intensityAttrName2_(""),
    00093                       intensityAttrTable2_(""),
    00094                       kernelFunction2_(TeKQuartic),
    00095                       computeType2_(TeKDensity),
    00096                       radiusValue2_(0.0),
    00097                       supportThemeId_(0),
    00098                       supportThemeName_(""),
    00099                       supportThemeTable_(""),
    00100                       supportThemeAttr_(""),
    00101                       generatedLayerId_(0),
    00102                       generatedLayerName_("")
    00103                       {}
    00104
    00105 };
    00106
    00108 typedef vector<TeKernelParams> TeKernelParamsVector;
    00109
    00110
    00111 #endif
    00112

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines