Dbscan
Implements the DBSCAN Clustering algorithm
Install / Use
/learn @gyaikhom/DbscanREADME
The DBSCAN Clustering Algorithm
In this project, we implement the DBSCAN clustering algorithm. For
further details, please view the NOWEB generated documentation dbscan.pdf.
##Source code
This repository contains the following source code and data files:
dbscan.c- A C programming language implementation (uses 3D data points).dbscan.js- A JavaScript implementation (uses 2D data points).dbscan.min.js- A minified JavaScript implementation.example.dat- Example data file.imageseg- Adaptation of DBSCAN algorithm for image segmentation.
##Usage
To run the algorithm on the supplied example data, first compile
$ clang -O2 -Wall -g -o dbscan dbscan.c -lm
and then run the program:
$ cat example.dat | ./dbscan
This will produce output as follows:
Epsilon: 1.000000
Minimum points: 2
Number of points: 53
x y z cluster_id
----------------------------------------------
1.00 3.00 1.00: 0
1.00 4.00 1.00: 0
1.00 5.00 1.00: 0
1.00 6.00 1.00: 0
2.00 2.00 1.00: 2
2.00 3.00 0.00: 1
2.00 4.00 0.00: 1
2.00 5.00 0.00: 1
2.00 6.00 0.00: 1
2.00 7.00 1.00: 3
3.00 1.00 1.00: 2
3.00 2.00 1.00: 2
...
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
