|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.result.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.
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 |
Constructor Summary | |
---|---|
ClusterOrderResult()
Constructor |
Method Summary | |
---|---|
void |
add(ClusterOrderEntry<D> ce)
Add an object ot the cluster order. |
void |
add(Integer id,
Integer predecessor,
D reachability)
Add an object to the cluster order. |
Pair<String,Object>[] |
getAnnotations(Integer objID)
Retrieve annotations for the cluster order. |
List<ClusterOrderEntry<D>> |
getClusterOrder()
Retrieve the complete cluster order. |
Iterator<Integer> |
iter(Collection<Integer> ids)
Use the cluster order to sort the given collection ids. |
Iterator<ClusterOrderEntry<D>> |
iterator()
The cluster order is iterable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ArrayList<ClusterOrderEntry<D extends Distance<D>>> clusterOrder
private HashMap<Integer,ClusterOrderEntry<D extends Distance<D>>> 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<D>>>
public void add(Integer id, Integer predecessor, D reachability)
id
- predecessor
- reachability
- public void add(ClusterOrderEntry<D> ce)
ce
- public Iterator<Integer> iter(Collection<Integer> ids)
OrderingResult
interface.
iter
in interface OrderingResult
ids
- Collection of ids.
public Pair<String,Object>[] getAnnotations(Integer objID)
AnnotationResult
interface.
objID
- Object ID
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |