Lightweight Java implementation of density-based clustering algorithm DBSCAN
You can download the latest jar file from the releases page.
To build the library, you can either compile the sources manually or use maven (mvn package
).
- Implement a distance metric for the data type to be clustered (using the interface
io.github.michaelmior.dbscan.DistanceMetric
; for an example see the implementationio.github.michaelmior.dbscan.metrics.DistanceMetricNumbers
or consult the tests). - Instantiate
DBSCANClusterer
. - Invoke
performClustering()
to retrieve the clustered inputs. See tests for examples.