|
|
|||||||||
| 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.data.Clustering<M>
M - Model typepublic class Clustering<M extends Model>

Result class for clusterings. Can be used for both hierarchical and non-hierarchical clusterings. The class does not enforce or rely on clusterings to be a tree or DAG, instead they can be an arbitrary forest of directed graphs that COULD contain cycles. This class is NOT iterable for a simple reason: there is more than one method to do so. You need to specify whether you want to use getToplevelClusters() or getAllClusters().
| Field Summary | |
|---|---|
private List<Cluster<M>> |
toplevelclusters
Keep a list of top level clusters. |
| Constructor Summary | |
|---|---|
Clustering(String name,
String shortname)
Constructor for an empty clustering |
|
Clustering(String name,
String shortname,
List<Cluster<M>> toplevelclusters)
Constructor with a list of top level clusters |
|
| Method Summary | |
|---|---|
void |
addCluster(Cluster<M> n)
Add a cluster to the clustering. |
List<Cluster<M>> |
getAllClusters()
Collect all clusters (recursively) into a List. |
List<Cluster<M>> |
getToplevelClusters()
Return top level clusters |
| 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 |
| Field Detail |
|---|
private List<Cluster<M extends Model>> toplevelclusters
| Constructor Detail |
|---|
public Clustering(String name,
String shortname,
List<Cluster<M>> toplevelclusters)
name - The long name (for pretty printing)shortname - the short name (for filenames etc.)toplevelclusters - Top level clusters
public Clustering(String name,
String shortname)
name - The long name (for pretty printing)shortname - the short name (for filenames etc.)| Method Detail |
|---|
public void addCluster(Cluster<M> n)
n - new clusterpublic List<Cluster<M>> getToplevelClusters()
public List<Cluster<M>> getAllClusters()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||