OPTICS Java Code

OPTICS is a very popular density-based clustering algorithm. Therefore it clusters all the data based on the density of records, creating clusters with that information. One of the special features is that OPTICS uses a specific ordering of the points to perform this partitioning.

In order to provide you a broader knowledge of OPTICS, we decided to publish our Java implementation of it. On the following code boxes, we provide the our complete Java code to program the OPTICS algorithm.

This is a simple implementation which can be optimized and you can use or modify as you wish.

Algorithm.java

DataPoint.java

Pair.java

OPTICS.java

Feel free to use and adapt our solution to this problem. We will love to know what you are working on and how we helped you with this piece of code. So, if you want to make some suggestion or comment, just contact us!