Skip to content

OpenCL ArrayFire implementation of the DBSCAN clustering algorithm in C++.

License

Notifications You must be signed in to change notification settings

Daniel-Butt/DBSCAN_ArrayFire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

DBSCAN_ArrayFire

OpenCL GPU implementation of the DBSCAN clustering algorithm in C++ using ArrayFire. Designed for clustering of unit vectors based on their Cosine Distances.

Requires the ArrayFire Library: https://github.com/arrayfire/arrayfire

Example use

#include "DBSCAN.h"

af::setBackend(AF_BACKEND_OPENCL);

af::array X = af::randn(10000, 16); // Matrix of unit-vectors (Num of vectors x vector dimensions)

DBSCAN db(0.7f, 50); // DBSCAN instance, minimum dot product and minimum points to form a cluster

std::vector<int> labels = db.fit(X); // cluster data

About

OpenCL ArrayFire implementation of the DBSCAN clustering algorithm in C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages