|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.result.MultiResult de.lmu.ifi.dbs.elki.result.ClusterOrderResult<D>
D
- distance type.public class ClusterOrderResult<D extends Distance<?>>
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 |
private HashMap<Integer,ClusterOrderEntry<D>> |
map
Map of object IDs to their cluster order entry |
static AssociationID<Integer> |
PREDECESSOR_ID
Predecessor ID for reachability distance. |
static AssociationID<? extends Distance<?>> |
REACHABILITY_ID
Association ID for reachability distance. |
Constructor Summary | |
---|---|
ClusterOrderResult()
Constructor |
Method Summary | |
---|---|
void |
add(ClusterOrderEntry<D> ce)
Add an object to the cluster order. |
void |
add(Integer id,
Integer predecessor,
D reachability)
Add an object to the cluster order. |
List<ClusterOrderEntry<D>> |
getClusterOrder()
Retrieve the complete cluster order. |
String |
getName()
Get a user-understandable name for this result. |
Iterator<ClusterOrderEntry<D>> |
iterator()
The cluster order is iterable |
Methods inherited from class de.lmu.ifi.dbs.elki.result.MultiResult |
---|
addResult, filterResults, getAssociation, getAssociationGenerics, getAssociations, getFirstFilteredResult, getResults, prependResult, setAssociation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AssociationID<? extends Distance<?>> REACHABILITY_ID
public static final AssociationID<Integer> PREDECESSOR_ID
private ArrayList<ClusterOrderEntry<D extends Distance<?>>> clusterOrder
private HashMap<Integer,ClusterOrderEntry<D extends Distance<?>>> map
Constructor Detail |
---|
public ClusterOrderResult()
Method Detail |
---|
public List<ClusterOrderEntry<D>> getClusterOrder()
public Iterator<ClusterOrderEntry<D>> iterator()
iterator
in interface Iterable<ClusterOrderEntry<D extends Distance<?>>>
public void add(Integer id, Integer predecessor, D reachability)
id
- Object IDpredecessor
- Predecessor IDreachability
- Reachability distancepublic void add(ClusterOrderEntry<D> ce)
ce
- Entrypublic String getName()
Result
getName
in interface Result
getName
in class MultiResult
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |