DBSCAN from scratch
- cd to main.cpp
- g++ main.cpp
./a.out [dataset path] [<float> radius] [<int> threshold]
eg../a.out /Users/Destop/DBSCAN/dataset.txt 2.0 4
- REMINDER:
The clusters and outliers output will be in the folder of input dataset.
Details please refer to slides from Prof. Tao Yufei here
Download here (obtained from the data collection here). Each line has the following format:
x y
which represent the x- and y-coordinates of a point.
Partition the dataset into 3 clusters.