te::sa::SkaterOperation Class Reference

Class used to execute the skater operations. More...

#include <SkaterOperation.h>

Public Member Functions

void execute ()
 Function to execute the skater operation. More...
 
int getNumberOfClasses ()
 
void setParameters (te::sa::SkaterInputParams *inParams, te::sa::SkaterOutputParams *outParams)
 
 SkaterOperation ()
 Default constructor. More...
 
 ~SkaterOperation ()
 Virtual destructor. More...
 

Protected Member Functions

double calculateWeight (std::vector< int > attrsIdx, te::graph::Vertex *vFrom, te::graph::Vertex *vTo)
 Function to calculate the weight attribute using the euclidean distance. More...
 
std::auto_ptr< te::mem::DataSetcreateDataSet (te::da::DataSet *inputDataSet, te::da::DataSetType *dsType, std::map< int, int > &skaterMap, std::string linkName)
 
std::auto_ptr< te::da::DataSetTypecreateDataSetType (te::da::DataSetType *dsType)
 
std::map< int, int > createSkaterMap (te::graph::AbstractGraph *graph, std::vector< std::size_t > &roots)
 
void createWeightAttribute (int weightAttrIdx, std::vector< int > attrsIdx)
 Function to create the weight attribute. More...
 
void saveDataSet (te::da::DataSet *dataSet, te::da::DataSetType *dsType)
 

Protected Attributes

std::auto_ptr< te::sa::SkaterInputParamsm_inputParams
 Attribute with the skater input parameters. More...
 
int m_nClassGroups
 Number of classes (clusters) generated. More...
 
std::auto_ptr< te::sa::SkaterOutputParamsm_outputParams
 Attribute with the skater output parameters. More...
 

Detailed Description

Class used to execute the skater operations.

Definition at line 55 of file SkaterOperation.h.

Constructor & Destructor Documentation

te::sa::SkaterOperation::SkaterOperation ( )

Default constructor.

te::sa::SkaterOperation::~SkaterOperation ( )

Virtual destructor.

Member Function Documentation

double te::sa::SkaterOperation::calculateWeight ( std::vector< int >  attrsIdx,
te::graph::Vertex vFrom,
te::graph::Vertex vTo 
)
protected

Function to calculate the weight attribute using the euclidean distance.

std::auto_ptr<te::mem::DataSet> te::sa::SkaterOperation::createDataSet ( te::da::DataSet inputDataSet,
te::da::DataSetType dsType,
std::map< int, int > &  skaterMap,
std::string  linkName 
)
protected

Function used to create the output dataset

std::auto_ptr<te::da::DataSetType> te::sa::SkaterOperation::createDataSetType ( te::da::DataSetType dsType)
protected

Function used to create the output dataset type

std::map<int, int> te::sa::SkaterOperation::createSkaterMap ( te::graph::AbstractGraph graph,
std::vector< std::size_t > &  roots 
)
protected
void te::sa::SkaterOperation::createWeightAttribute ( int  weightAttrIdx,
std::vector< int >  attrsIdx 
)
protected

Function to create the weight attribute.

void te::sa::SkaterOperation::execute ( )

Function to execute the skater operation.

int te::sa::SkaterOperation::getNumberOfClasses ( )
void te::sa::SkaterOperation::saveDataSet ( te::da::DataSet dataSet,
te::da::DataSetType dsType 
)
protected

Function used to save the output dataset

void te::sa::SkaterOperation::setParameters ( te::sa::SkaterInputParams inParams,
te::sa::SkaterOutputParams outParams 
)

Member Data Documentation

std::auto_ptr<te::sa::SkaterInputParams> te::sa::SkaterOperation::m_inputParams
protected

Attribute with the skater input parameters.

Definition at line 95 of file SkaterOperation.h.

int te::sa::SkaterOperation::m_nClassGroups
protected

Number of classes (clusters) generated.

Definition at line 99 of file SkaterOperation.h.

std::auto_ptr<te::sa::SkaterOutputParams> te::sa::SkaterOperation::m_outputParams
protected

Attribute with the skater output parameters.

Definition at line 97 of file SkaterOperation.h.


The documentation for this class was generated from the following file: