28 #ifndef __TERRALIB_SA_INTERNAL_SKATEROPERATION_H
29 #define __TERRALIB_SA_INTERNAL_SKATEROPERATION_H
33 #include "../Config.h"
This file contains a class that represents the skater parameters.
A class that models the description of a dataset.
A dataset is the unit of information manipulated by the data access module of TerraLib.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
From the point of view of graph theory, vertices are treated as featureless and indivisible objects,...
Class used to execute the skater operations.
double calculateWeight(std::vector< int > attrsIdx, te::graph::Vertex *vFrom, te::graph::Vertex *vTo)
Function to calculate the weight attribute using the euclidean distance.
std::unique_ptr< te::sa::SkaterOutputParams > m_outputParams
Attribute with the skater output parameters.
std::unique_ptr< te::sa::SkaterInputParams > m_inputParams
Attribute with the skater input parameters.
SkaterOperation()
Default constructor.
int m_nClassGroups
Number of classes (clusters) generated.
~SkaterOperation()
Virtual destructor.
void setParameters(te::sa::SkaterInputParams *inParams, te::sa::SkaterOutputParams *outParams)
std::map< int, int > createSkaterMap(te::graph::AbstractGraph *graph, std::vector< std::size_t > &roots)
std::unique_ptr< te::da::DataSetType > createDataSetType(te::da::DataSetType *dsType)
std::unique_ptr< te::mem::DataSet > createDataSet(te::da::DataSet *inputDataSet, te::da::DataSetType *dsType, std::map< int, int > &skaterMap, std::string linkName)
void createWeightAttribute(int weightAttrIdx, std::vector< int > attrsIdx)
Function to create the weight attribute.
void execute()
Function to execute the skater operation.
void saveDataSet(te::da::DataSet *dataSet, te::da::DataSetType *dsType)
Class that represents the skater output parameters.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.