Clustering
#######################

Example of how to cluster a set of points.  The points are randomly drawn from three different distributions.  The clustering algorithm will attempt to dermine which points belong to the same set.

.. figure:: clusters.png
   :scale: 100 %
   :align: center
   :alt: Clusters

   Output from example. Each cluster has its own color and each point is colorized to show the cluster it belongs to.

:gitexample:`ExampleClustering.java`

.. literalinclude:: ../../examples/src/org/ddogleg/example/ExampleClustering.java
   :language: java
   :linenos:
   :start-after: public class
   :tab-width: 4
   :dedent: 4
