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
org.christopherfrantz.dbscan.DistanceMetric
; for an example see the implementationorg.christopherfrantz.dbscan.metrics.DistanceMetricNumbers
or consult the tests). - Instantiate
DBSCANClusterer
. - Invoke
performClustering()
to retrieve the clustered inputs. See tests for examples.