Metadata-Version: 2.1
Name: cydpscan
Version: 0.10
Summary: Very fast dbscan 2d / 3d for Python - written in Cython/C++
Home-page: https://github.com/hansalemaos/cydpscan
Author: Johannes Fischer
Author-email: aulasparticularesdealemaosp@gmail.com
License: MIT
Keywords: dbscan,Cython,cpp
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst
Requires-Dist: Cython
Requires-Dist: setuptools


# Very fast dbscan 2d / 3d for Python - written in Cython/C++

Python wrapper for https://github.com/Eleobert/dbscan

```pip install cydpscan```

Cython and a C++ 20 compiler must be installed! The module will be compiled the first time you import it!

```py
from cydpscan import calculate_dbscan_2d, calculate_dbscan_3d
import random
from pprint import pprint

mylist = []
for q in range(1000000):
    mylist.append((random.randint(0, 10000), random.randint(0, 10000)))

result = calculate_dbscan_2d(mylist, eps=0.1, min_pts=3)
pprint(result)

mylist2 = []
for q in range(1000000):
    mylist2.append(
        (random.randint(0, 1000), random.randint(0, 1000), random.randint(0, 1000))
    )

result2 = calculate_dbscan_3d(mylist2, eps=0.1, min_pts=3)
pprint(result2)

```
