|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.SwingWorker<java.lang.Void,java.lang.Void>
it.unibz.algorithms.DBScan
public class DBScan
Class which represents the DBScan Algorithm in all its iterative steps. Extends SwingWorker in order to be executed as a background Thread and to keep control of progress.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.SwingWorker |
---|
javax.swing.SwingWorker.StateValue |
Field Summary | |
---|---|
private static java.util.List<Cluster> |
clusters
|
private int |
e
|
private int |
minp
|
private static java.util.List<Instance> |
pointsList
|
Constructor Summary | |
---|---|
DBScan(java.util.List<Instance> Instances,
int e,
int minp)
Base constructor with the epsilon and min-points values |
Method Summary | |
---|---|
private static boolean |
addNeighbors(Cluster cluster,
Cluster cluster2)
Method adds Instances of b to a if has to be updated |
protected java.lang.Void |
doInBackground()
Executes the main DBScan algorithm composed by various steps Note: The various isCancelled() are used to proper stop this thread if the user closes the operation. |
java.util.List<Cluster> |
getClusters()
Method returns all Clusters to be printed out |
private static double |
getDistance(Instance p,
Instance q)
Method calculates the squaredistance beetween 2 Instances |
private java.util.List<Instance> |
getneighbors(Instance p)
Method returns the list of Epsilonneighbors |
Methods inherited from class javax.swing.SwingWorker |
---|
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.List<Instance> pointsList
private static java.util.List<Cluster> clusters
private int e
private int minp
Constructor Detail |
---|
public DBScan(java.util.List<Instance> Instances, int e, int minp)
Method Detail |
---|
public java.util.List<Cluster> getClusters()
protected java.lang.Void doInBackground() throws java.lang.Exception
doInBackground
in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
java.lang.Exception
private static double getDistance(Instance p, Instance q)
private java.util.List<Instance> getneighbors(Instance p)
p
- The Current Instance to investigate on
private static boolean addNeighbors(Cluster cluster, Cluster cluster2)
cluster
- final Instance setcluster2
- Instance set to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |