|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<O,R>
de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm<O,D,ClusterOrderResult<D>>
de.lmu.ifi.dbs.elki.algorithm.clustering.OPTICS<O,D>
O - the type of DatabaseObjects handled by the algorithmD - the type of Distance used to discern objectspublic class OPTICS<O extends DatabaseObject,D extends Distance<D>>
OPTICS provides the OPTICS algorithm.
Reference:
M. Ankerst, M. Breunig, H.-P. Kriegel, and J. Sander:
OPTICS: Ordering Points to Identify the Clustering Structure.
In: Proc. ACM SIGMOD Int. Conf. on Management of Data (SIGMOD '99).
| Nested Class Summary | |
|---|---|
class |
OPTICS.COEntry
Encapsulates an entry in the cluster order. |
| Field Summary | |
|---|---|
private ClusterOrderResult<D> |
clusterOrder
Provides the result of the algorithm. |
private String |
epsilon
Hold the value of EPSILON_PARAM. |
static OptionID |
EPSILON_ID
OptionID for EPSILON_PARAM |
private PatternParameter |
EPSILON_PARAM
Parameter to specify the maximum radius of the neighborhood to be considered, must be suitable to the distance function specified. |
private Heap<D,OPTICS.COEntry> |
heap
The priority queue for the algorithm. |
private int |
minpts
Holds the value of MINPTS_PARAM. |
static OptionID |
MINPTS_ID
OptionID for MINPTS_PARAM |
private IntParameter |
MINPTS_PARAM
Parameter to specify the threshold for minimum number of points in the epsilon-neighborhood of a point, must be an integer greater than 0. |
private Set<Integer> |
processedIDs
Holds a set of processed ids. |
| Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm |
|---|
DISTANCE_FUNCTION_ID, DISTANCE_FUNCTION_PARAM |
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
optionHandler |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
OPTICS()
Provides the OPTICS algorithm, adding parameters EPSILON_PARAM and MINPTS_PARAM
to the option handler additionally to parameters of super class. |
|
| Method Summary | |
|---|---|
protected void |
expandClusterOrder(Database<O> database,
Integer objectID,
FiniteProgress progress)
OPTICS-function expandClusterOrder. |
Description |
getDescription()
Returns a description of the algorithm. |
ClusterOrderResult<D> |
getResult()
Returns the result of the algorithm. |
protected ClusterOrderResult<D> |
runInTime(Database<O> database)
Performs the OPTICS algorithm on the given database. |
List<String> |
setParameters(List<String> args)
Calls the super method and sets additionally the values of the parameters EPSILON_PARAM and MINPTS_PARAM. |
private void |
updateHeap(D reachability,
OPTICS.COEntry entry)
Adds the specified entry with the specified key tp the heap. |
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm |
|---|
getDistanceFunction |
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
|---|
isTime, isVerbose, run, setTime, setVerbose |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
|---|
checkGlobalParameterConstraints, collectOptions, getParameters, shortDescription |
| Field Detail |
|---|
public static final OptionID EPSILON_ID
EPSILON_PARAM
private final PatternParameter EPSILON_PARAM
Key: -optics.epsilon
private String epsilon
EPSILON_PARAM.
public static final OptionID MINPTS_ID
MINPTS_PARAM
private final IntParameter MINPTS_PARAM
Key: -optics.minpts
private int minpts
MINPTS_PARAM.
private ClusterOrderResult<D extends Distance<D>> clusterOrder
private Set<Integer> processedIDs
private Heap<D extends Distance<D>,OPTICS.COEntry> heap
| Constructor Detail |
|---|
public OPTICS()
EPSILON_PARAM and MINPTS_PARAM
to the option handler additionally to parameters of super class.
| Method Detail |
|---|
protected ClusterOrderResult<D> runInTime(Database<O> database)
runInTime in class AbstractAlgorithm<O extends DatabaseObject,ClusterOrderResult<D extends Distance<D>>>database - the database to run the algorithm on
protected void expandClusterOrder(Database<O> database,
Integer objectID,
FiniteProgress progress)
database - the database on which the algorithm is runobjectID - the currently processed objectprogress - the progress object to actualize the current progress if the
algorithmpublic Description getDescription()
Algorithm
public List<String> setParameters(List<String> args)
throws ParameterException
EPSILON_PARAM and MINPTS_PARAM.
setParameters in interface ParameterizablesetParameters in class DistanceBasedAlgorithm<O extends DatabaseObject,D extends Distance<D>,ClusterOrderResult<D extends Distance<D>>>args - parameters to set the attributes accordingly to
ParameterException - in case of wrong parameter-settingpublic ClusterOrderResult<D> getResult()
Algorithm
private void updateHeap(D reachability,
OPTICS.COEntry entry)
reachability - the reachability of the entry's objectentry - the entry to be added
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||