|
|
|||||||||||||||||||||
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>
de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm<O,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.
Nested Class Summary | |
---|---|
class |
OPTICS.COEntry
Encapsulates an entry in the cluster order. |
Field Summary | |
---|---|
private ClusterOrder<O,D> |
clusterOrder
Provides the result of the algorithm. |
private String |
epsilon
Hold the value of the epsilon parameter. |
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 the minpts parameter. |
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 |
Constructor Summary | |
---|---|
OPTICS()
Sets epsilon and minimum points to the optionhandler additionally to the parameters provided by super-classes. |
Method Summary | |
---|---|
protected void |
expandClusterOrder(Database<O> database,
Integer objectID,
Progress progress)
OPTICS-function expandClusterOrder. |
Description |
getDescription()
Returns a description of the algorithm. |
Result<O> |
getResult()
Returns the result of the algorithm. |
protected void |
runInTime(Database<O> database)
The run method encapsulated in measure of runtime. |
String[] |
setParameters(String[] args)
Calls AbstractAlgorithm#setParameters(args)
and instantiates DistanceBasedAlgorithm.distanceFunction according to the value of parameter
DistanceBasedAlgorithm.DISTANCE_FUNCTION_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 |
---|
getAttributeSettings, getDistanceFunction |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
---|
description, isTime, isVerbose, run, setTime, setVerbose |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, 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, getParameters, getPossibleOptions, inlineDescription |
Field Detail |
---|
private final PatternParameter EPSILON_PARAM
Key: -optics.epsilon
private final IntParameter MINPTS_PARAM
Key: -optics.minpts
private String epsilon
private int minpts
private ClusterOrder<O extends DatabaseObject,D extends Distance<D>> clusterOrder
private Set<Integer> processedIDs
private Heap<D extends Distance<D>,OPTICS.COEntry> heap
Constructor Detail |
---|
public OPTICS()
Method Detail |
---|
protected void runInTime(Database<O> database)
AbstractAlgorithm
runInTime
in class AbstractAlgorithm<O extends DatabaseObject>
database
- the database to run the algorithm onAlgorithm.run(de.lmu.ifi.dbs.elki.database.Database)
protected void expandClusterOrder(Database<O> database, Integer objectID, Progress progress)
database
- the database on which the algorithm is runobjectID
- the currently processed objectprogress
- the progress object to actualize the current progess if the
algorithmpublic Description getDescription()
Algorithm
Algorithm.getDescription()
public String[] setParameters(String[] args) throws ParameterException
DistanceBasedAlgorithm
AbstractAlgorithm#setParameters(args)
and instantiates DistanceBasedAlgorithm.distanceFunction
according to the value of parameter
DistanceBasedAlgorithm.DISTANCE_FUNCTION_PARAM
.
The remaining parameters are passed to the DistanceBasedAlgorithm.distanceFunction
.
setParameters
in interface Parameterizable
setParameters
in class DistanceBasedAlgorithm<O extends DatabaseObject,D extends Distance<D>>
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingParameterizable.setParameters(String[])
public Result<O> getResult()
Algorithm
Algorithm.getResult()
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 |