|
|
|||||||||||||||||||||
| 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.algorithm.AbstractAlgorithm<O,R>
de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm<O,D,ClusterOrderResult<D>>
de.lmu.ifi.dbs.elki.algorithm.clustering.DeLiClu<O,D>
O - the type of FeatureVector handled by this AlgorithmD - the type of Distance used@Title(value="DeliClu: Density-Based Hierarchical Clustering")
@Description(value="Hierachical algorithm to find density-connected sets in a database based on the parameter \'minpts\'.")
@Reference(authors="E. Achtert, C. B\u00f6hm, P. Kr\u00f6ger",
title="DeLiClu: Boosting Robustness, Completeness, Usability, and Efficiency of Hierarchical Clustering by a Closest Pair Ranking",
booktitle="Proc. 10th Pacific-Asia Conference on Knowledge Discovery and Data Mining (PAKDD 2006), Singapore, 2006",
url="http://dx.doi.org/10.1007/11731139_16")
public class DeLiClu<O extends NumberVector<O,?>,D extends Distance<D>>DeLiClu provides the DeLiClu algorithm, a hierarchical algorithm to find density-connected sets in a database.
Reference:
E. Achtert, C. Böhm, P. Kröger: DeLiClu: Boosting Robustness, Completeness,
Usability, and Efficiency of Hierarchical Clustering by a Closest Pair
Ranking.
In Proc. 10th Pacific-Asia Conference on Knowledge Discovery and Data Mining
(PAKDD 2006), Singapore, 2006.
| Nested Class Summary | |
|---|---|
class |
DeLiClu.SpatialObjectPair
Encapsulates an entry in the cluster order. |
| Field Summary | |
|---|---|
private Heap<D,DeLiClu.SpatialObjectPair> |
heap
The priority queue for the algorithm. |
private KNNJoin<O,D,DeLiCluNode,DeLiCluEntry> |
knnJoin
Holds the knnJoin algorithm. |
static OptionID |
MINPTS_ID
OptionID for MINPTS_PARAM |
private IntParameter |
MINPTS_PARAM
Parameter to specify the threshold for minimum number of points within a cluster, must be an integer greater than 0. |
protected int |
numNodes
The number of nodes of the DeLiCluTree. |
| 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.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
DeLiClu(Parameterization config)
Constructor, adhering to Parameterizable |
|
| Method Summary | |
|---|---|
private void |
expandDirNodes(SpatialDistanceFunction<O,D> distFunction,
DeLiCluNode node1,
DeLiCluNode node2)
Expands the specified directory nodes. |
private void |
expandLeafNodes(SpatialDistanceFunction<O,D> distFunction,
DeLiCluNode node1,
DeLiCluNode node2,
AnnotationResult<KNNList<D>> knns)
Expands the specified directory nodes. |
private void |
expandNodes(DeLiCluTree<O> index,
SpatialDistanceFunction<O,D> distFunction,
DeLiClu.SpatialObjectPair nodePair,
AnnotationResult<KNNList<D>> knns)
Expands the spatial nodes of the specified pair. |
private Integer |
getStartObject(SpatialIndexDatabase<O,DeLiCluNode,DeLiCluEntry> database)
Returns the id of the start object for the run method. |
private void |
reinsertExpanded(SpatialDistanceFunction<O,D> distFunction,
DeLiCluTree<O> index,
List<TreeIndexPathComponent<DeLiCluEntry>> path,
AnnotationResult<KNNList<D>> knns)
Reinserts the objects of the already expanded nodes. |
private void |
reinsertExpanded(SpatialDistanceFunction<O,D> distFunction,
DeLiCluTree<O> index,
List<TreeIndexPathComponent<DeLiCluEntry>> path,
int pos,
SpatialEntry parentEntry,
AnnotationResult<KNNList<D>> knns)
|
protected ClusterOrderResult<D> |
runInTime(Database<O> database)
Performs the DeLiClu algorithm on the given database. |
private void |
updateHeap(D reachability,
DeLiClu.SpatialObjectPair pair)
Adds the specified entry with the specified key tp the heap. |
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm |
|---|
getDistanceFactory, 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.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 |
| Field Detail |
|---|
public static final OptionID MINPTS_ID
MINPTS_PARAM
private final IntParameter MINPTS_PARAM
Key: -deliclu.minpts
private Heap<D extends Distance<D>,DeLiClu.SpatialObjectPair> heap
private KNNJoin<O extends NumberVector<O,?>,D extends Distance<D>,DeLiCluNode,DeLiCluEntry> knnJoin
protected int numNodes
| Constructor Detail |
|---|
public DeLiClu(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
protected ClusterOrderResult<D> runInTime(Database<O> database)
throws IllegalStateException
runInTime in class AbstractAlgorithm<O extends NumberVector<O,?>,ClusterOrderResult<D extends Distance<D>>>database - the database to run the algorithm on
IllegalStateException - if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).private Integer getStartObject(SpatialIndexDatabase<O,DeLiCluNode,DeLiCluEntry> database)
database - the database storing the objects
private void updateHeap(D reachability,
DeLiClu.SpatialObjectPair pair)
reachability - the reachability of the entry's objectpair - the entry to be added
private void expandNodes(DeLiCluTree<O> index,
SpatialDistanceFunction<O,D> distFunction,
DeLiClu.SpatialObjectPair nodePair,
AnnotationResult<KNNList<D>> knns)
index - the index storing the objectsdistFunction - the spatial distance function of this algorithmnodePair - the pair of nodes to be expandedknns - the knn list
private void expandDirNodes(SpatialDistanceFunction<O,D> distFunction,
DeLiCluNode node1,
DeLiCluNode node2)
distFunction - the spatial distance function of this algorithmnode1 - the first nodenode2 - the second node
private void expandLeafNodes(SpatialDistanceFunction<O,D> distFunction,
DeLiCluNode node1,
DeLiCluNode node2,
AnnotationResult<KNNList<D>> knns)
distFunction - the spatial distance function of this algorithmnode1 - the first nodenode2 - the second nodeknns - the knn list
private void reinsertExpanded(SpatialDistanceFunction<O,D> distFunction,
DeLiCluTree<O> index,
List<TreeIndexPathComponent<DeLiCluEntry>> path,
AnnotationResult<KNNList<D>> knns)
distFunction - the spatial distance function of this algorithmindex - the index storing the objectspath - the path of the object inserted lastknns - the knn list
private void reinsertExpanded(SpatialDistanceFunction<O,D> distFunction,
DeLiCluTree<O> index,
List<TreeIndexPathComponent<DeLiCluEntry>> path,
int pos,
SpatialEntry parentEntry,
AnnotationResult<KNNList<D>> knns)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||