org.ddogleg.example
Class ExampleClustering
- java.lang.Object
-
- org.ddogleg.example.ExampleClustering
-
public class ExampleClustering extends java.lang.ObjectDemonstration of how to cluster a N-dimensional points into clusters. The high level interface provides the capability to do hard and soft assignments. Hard assignments select a single best match for a point and soft assignments compute a weight for each cluster, high weights mean better matches. Results are visualized in a window. Points in different clusters are assigned different colors. If you click the inside of the window the algorithm is run again and a new set of clusters is shown.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classExampleClustering.GuiBasic visualization which draws the points in a window.
-
Field Summary
Fields Modifier and Type Field and Description static booleanclickedstatic booleangaussianstatic java.util.Randomrand
-
Constructor Summary
Constructors Constructor and Description ExampleClustering()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.util.List<double[]>createCluster(double x, double y, double width, int N)static voidmain(java.lang.String[] args)
-
DataMelt 3.0 © DataMelt by jWork.ORG