te::sa::GPMConstructorNearestNeighborStrategy Class Reference

This class defines a nearest neighbor class for a GPM constructor. More...

#include <GPMConstructorNearestNeighborStrategy.h>

Inheritance diagram for te::sa::GPMConstructorNearestNeighborStrategy:
te::sa::GPMConstructorAbstractStrategy

Public Member Functions

 GPMConstructorNearestNeighborStrategy ()
 Default constructor. More...
 
 GPMConstructorNearestNeighborStrategy (std::size_t nNeighbors)
 Specific constructor. More...
 
virtual ~GPMConstructorNearestNeighborStrategy ()
 Virtual destructor. More...
 
Methods

Methods used by the GPM constructor

virtual void constructStrategy ()
 Build the edges using specific strategy. More...
 

Protected Attributes

te::da::DataSourcem_ds
 Data Source pointer. More...
 
int m_edgeId
 Attribute used as a index counter for edge objects. More...
 
GeneralizedProximityMatrixm_gpm
 GPM Pointer. More...
 
std::size_t m_nNeighbors
 
GPMConstructorStrategyType m_type
 Constructor Type. More...
 

Methods

Methods used by the GPM constructor

GPMConstructorStrategyType getConstructorType ()
 
void construct (te::da::DataSource *ds, GeneralizedProximityMatrix *gpm)
 
void createVertexObjects ()
 Function used to create all vertex object based on data set. More...
 
void createDistanceAttribute (GeneralizedProximityMatrix *gpm)
 Added to the edge a new attribute for distance information. More...
 
int getEdgeId ()
 Function used to generated the edge id. More...
 

Detailed Description

This class defines a nearest neighbor class for a GPM constructor.

See also
GPMBuilder

Definition at line 49 of file GPMConstructorNearestNeighborStrategy.h.

Constructor & Destructor Documentation

te::sa::GPMConstructorNearestNeighborStrategy::GPMConstructorNearestNeighborStrategy ( )
te::sa::GPMConstructorNearestNeighborStrategy::GPMConstructorNearestNeighborStrategy ( std::size_t  nNeighbors)
te::sa::GPMConstructorNearestNeighborStrategy::~GPMConstructorNearestNeighborStrategy ( )
virtualdefault

Virtual destructor.

Referenced by GPMConstructorNearestNeighborStrategy().

Member Function Documentation

void te::sa::GPMConstructorNearestNeighborStrategy::constructStrategy ( )
virtual

Build the edges using specific strategy.

Implements te::sa::GPMConstructorAbstractStrategy.

Definition at line 60 of file GPMConstructorNearestNeighborStrategy.cpp.

te::sa::GPMConstructorStrategyType te::sa::GPMConstructorAbstractStrategy::getConstructorType ( )
inherited
int te::sa::GPMConstructorAbstractStrategy::getEdgeId ( )
protectedinherited

Member Data Documentation

int te::sa::GPMConstructorAbstractStrategy::m_edgeId
protectedinherited
std::size_t te::sa::GPMConstructorNearestNeighborStrategy::m_nNeighbors
protected

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