Skip to main content

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

Project description

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!

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cydpscan-0.10.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cydpscan-0.10-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file cydpscan-0.10.tar.gz.

File metadata

  • Download URL: cydpscan-0.10.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cydpscan-0.10.tar.gz
Algorithm Hash digest
SHA256 5b6d6a49e0c9bb50863e5dd56da37dafe29664db2d641129c9a67631448e1398
MD5 c1bf96a74c5dab4d372188af609335fa
BLAKE2b-256 ebf10439c95247525965ba4f809490f4dd37821c3bb02383c6ab6265b98f0d8d

See more details on using hashes here.

File details

Details for the file cydpscan-0.10-py3-none-any.whl.

File metadata

  • Download URL: cydpscan-0.10-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cydpscan-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9676730e42e8d14b3b162f24cd7c277d8da356f57806dc2f81ff708d70c61117
MD5 9f601b4c5faea8e44b4e894ce7f12edc
BLAKE2b-256 8fbf590fb3b5085289cd953ece06caceac16467ab6608c23a8b5cc1e00b4d5c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page