SG++
sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL Class Referenceabstract

Pure virtual base class for the k nearest neighbor opencl operation. More...

#include <OperationCreateGraphOCL.hpp>

Inheritance diagram for sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL:
sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCLSingleDevice< T >

Public Member Functions

virtual void begin_graph_creation (int startid, int chunksize)=0
 
virtual void create_graph (std::vector< int > &resultVector, int startid=0, int chunksize=0)=0
 Pure virtual function to create the k nearest neighbor graph for some datapoints of a dataset. More...
 
virtual void finalize_graph_creation (std::vector< int > &resultVector, int startid, int chunksize)=0
 
 OperationCreateGraphOCL ()
 
virtual ~OperationCreateGraphOCL (void)
 

Static Public Member Functions

static std::vector< size_t > find_clusters (std::vector< int > &graph, size_t k)
 Assign a clusterindex for each datapoint using the connected components of the graph. More...
 
static void load_default_parameters (base::OCLOperationConfiguration *parameters)
 Add the default parameters to the the configuration. More...
 

Static Protected Member Functions

static size_t find_neighbors (size_t index, std::vector< int > &nodes, size_t cluster, size_t k, std::vector< size_t > &clusterList, bool overwrite=false)
 Recursive function for traversing the k nearest neighbor graph. More...
 

Detailed Description

Pure virtual base class for the k nearest neighbor opencl operation.

Constructor & Destructor Documentation

sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::OperationCreateGraphOCL ( )
inline
virtual sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::~OperationCreateGraphOCL ( void  )
inlinevirtual

Member Function Documentation

virtual void sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::begin_graph_creation ( int  startid,
int  chunksize 
)
pure virtual
virtual void sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::create_graph ( std::vector< int > &  resultVector,
int  startid = 0,
int  chunksize = 0 
)
pure virtual
virtual void sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::finalize_graph_creation ( std::vector< int > &  resultVector,
int  startid,
int  chunksize 
)
pure virtual
static std::vector<size_t> sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::find_clusters ( std::vector< int > &  graph,
size_t  k 
)
inlinestatic

Assign a clusterindex for each datapoint using the connected components of the graph.

References analyse_erg::clustercount, and find_neighbors().

Referenced by sgpp::datadriven::ClusteringOCL::OperationClusteringOCL< T >::calculate_clusters(), and main().

static size_t sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::find_neighbors ( size_t  index,
std::vector< int > &  nodes,
size_t  cluster,
size_t  k,
std::vector< size_t > &  clusterList,
bool  overwrite = false 
)
inlinestaticprotected

Recursive function for traversing the k nearest neighbor graph.

Referenced by find_clusters().

static void sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL::load_default_parameters ( base::OCLOperationConfiguration parameters)
inlinestatic

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