|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
de.lmu.ifi.dbs.elki.result.BasicResult
de.lmu.ifi.dbs.elki.result.optics.ClusterOrderResult<D>
D - distance type.public class ClusterOrderResult<D extends Distance<D>>

Class to store the result of an ordering clustering algorithm such as OPTICS.
| Nested Class Summary | |
|---|---|
(package private) class |
ClusterOrderResult.ClusterOrderAdapter
Ordering part of the result. |
(package private) class |
ClusterOrderResult.PredecessorAdapter
Result containing the predecessor ID. |
(package private) class |
ClusterOrderResult.ReachabilityDistanceAdapter
Result containing the reachability distances. |
| Field Summary | |
|---|---|
private ArrayList<ClusterOrderEntry<D>> |
clusterOrder
Cluster order storage |
(package private) ModifiableDBIDs |
dbids
The DBIDs we are defined for |
private HashMap<DBID,ClusterOrderEntry<D>> |
map
Map of object IDs to their cluster order entry |
| Constructor Summary | |
|---|---|
ClusterOrderResult(String name,
String shortname)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(ClusterOrderEntry<D> ce)
Add an object to the cluster order. |
void |
add(DBID id,
DBID predecessor,
D reachability)
Add an object to the cluster order. |
List<ClusterOrderEntry<D>> |
getClusterOrder()
Retrieve the complete cluster order. |
Class<?> |
getDistanceClass()
Get the distance class |
Iterator<ClusterOrderEntry<D>> |
iterator()
The cluster order is iterable |
| Methods inherited from class de.lmu.ifi.dbs.elki.result.BasicResult |
|---|
getLongName, getShortName |
| Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult |
|---|
addChildResult, getHierarchy, setHierarchy |
| 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.result.Result |
|---|
getLongName, getShortName |
| Field Detail |
|---|
private ArrayList<ClusterOrderEntry<D extends Distance<D>>> clusterOrder
private HashMap<DBID,ClusterOrderEntry<D extends Distance<D>>> map
ModifiableDBIDs dbids
| Constructor Detail |
|---|
public ClusterOrderResult(String name,
String shortname)
name - The long name (for pretty printing)shortname - the short name (for filenames etc.)| Method Detail |
|---|
public List<ClusterOrderEntry<D>> getClusterOrder()
public Iterator<ClusterOrderEntry<D>> iterator()
iterator in interface IterableResult<ClusterOrderEntry<D extends Distance<D>>>iterator in interface Iterable<ClusterOrderEntry<D extends Distance<D>>>
public void add(DBID id,
DBID predecessor,
D reachability)
id - Object IDpredecessor - Predecessor IDreachability - Reachability distancepublic void add(ClusterOrderEntry<D> ce)
ce - Entrypublic Class<?> getDistanceClass()
null for an all-undefined result!
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||