https://github.com/jakedaspud/dbscan-cpp
A C++ implementation of DBSCAN, adapted from the YouTube channel "Modern C++".
https://github.com/jakedaspud/dbscan-cpp
Last synced: 9 months ago
JSON representation
A C++ implementation of DBSCAN, adapted from the YouTube channel "Modern C++".
- Host: GitHub
- URL: https://github.com/jakedaspud/dbscan-cpp
- Owner: JakeDaSpud
- Created: 2025-06-05T23:37:58.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-06-06T00:15:09.000Z (12 months ago)
- Last Synced: 2025-06-06T01:23:40.338Z (12 months ago)
- Language: C++
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 🗃️DBSCAN in C++
This is an adaptation of [Modern C++](https://www.youtube.com/@moderncpp)'s DBSCAN implementation.
[Video link here](https://www.youtube.com/watch?v=87ogbzhXUxo)
# ⚙️Custom Arguments
You can run the program with your own custom 2D points by passing them as command-line arguments.
Each pair of numbers is interpreted as an (x, y) point. The format is:
``
DBSCAN.exe x1 y1 x2 y2 x3 y3
``
The Points {-100, 345} {189, -28.84} would be entered as such:
``
DBSCAN.exe -100 345 189 -28.84
``
# 📠footnote
The set_union() function was the only thing I really had to change, adding vector_union(), otherwise it is the same code that now prints out the data Points and their Cluster IDs.