|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.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()
Constructor for an empty clustering |
|
Clustering(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. |
String |
getName()
Get a user-understandable name for this result. |
List<Cluster<M>> |
getToplevelClusters()
Return top level clusters |
| 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(List<Cluster<M>> toplevelclusters)
toplevelclusters - Top level clusterspublic Clustering()
| Method Detail |
|---|
public void addCluster(Cluster<M> n)
n - new clusterpublic List<Cluster<M>> getToplevelClusters()
public List<Cluster<M>> getAllClusters()
public String getName()
Result
getName in interface Result
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||