![]() |
SG++-Doxygen-Documentation
|
Operation for creation of a k nearest neighbors graph using a dataset. More...
#include <OperationCreateGraphOCLSingleDevice.hpp>
Public Member Functions | |
void | begin_graph_creation (int startid, int chunksize) |
void | create_graph (std::vector< int > &resultVector, int startid=0, int chunksize=0) |
Creates part of the k nearest neighbor graph (or all of it with the default parameters) More... | |
void | finalize_graph_creation (std::vector< int > &resultVector, int startid, int chunksize) |
OperationCreateGraphOCLSingleDevice (base::DataMatrix &data, size_t dimensions, std::shared_ptr< base::OCLManagerMultiPlatform > manager, sgpp::base::OCLOperationConfiguration *parameters, size_t k, size_t platform_id, size_t device_id) | |
Constructor using a DataMatrix. More... | |
OperationCreateGraphOCLSingleDevice (double *dataset, size_t datasize, size_t dimensions, std::shared_ptr< base::OCLManagerMultiPlatform > manager, sgpp::base::OCLOperationConfiguration *parameters, size_t k, size_t platform_id, size_t device_id) | |
Constructor which accepts double vector instead of a DataMatrix. More... | |
void | set_problemchunk (size_t start_id, size_t chunksize) |
virtual | ~OperationCreateGraphOCLSingleDevice (void) |
![]() | |
OperationCreateGraphOCL () | |
virtual | ~OperationCreateGraphOCL (void) |
Additional Inherited Members | |
![]() | |
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 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... | |
Operation for creation of a k nearest neighbors graph using a dataset.
|
inline |
Constructor using a DataMatrix.
References analyse_erg::counter, sgpp::base::DataMatrix::getPointer(), sgpp::base::DataMatrix::getSize(), and python.statsfileInfo::i.
|
inline |
Constructor which accepts double vector instead of a DataMatrix.
References analyse_erg::counter, and python.statsfileInfo::i.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Creates part of the k nearest neighbor graph (or all of it with the default parameters)
Implements sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCL.
References sgpp::datadriven::DensityOCLMultiPlatform::KernelCreateGraph< T >::begin_graph_creation(), sgpp::datadriven::DensityOCLMultiPlatform::KernelCreateGraph< T >::finalize_graph_creation(), python.leja::start, and sgpp::base::operation_exception::what().
|
inlinevirtual |
|
inline |