|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geworkbench.bison.model.clusters.AbstractCluster
org.geworkbench.bison.model.clusters.DefaultHierCluster
public class DefaultHierCluster
Generalization of the
Cluster contract that encapsulates
functionality to handle Clusters generated from the Hierarchical Clustering
analysis method
| Field Summary |
|---|
| Fields inherited from class org.geworkbench.bison.model.clusters.AbstractCluster |
|---|
children, clusterID, iterator, parent |
| Constructor Summary | |
|---|---|
DefaultHierCluster()
|
|
| Method Summary | |
|---|---|
void |
addNode(HierCluster hc,
int index)
Adds Cluster as a child of this node |
int |
compareTo(java.lang.Object o)
Comparable method that compares this
Cluster to another Hierarchical CLuster node. |
int |
getDepth()
Gets the Combinatorial Depth of this Cluster |
double |
getHeight()
Gets the Algorithmic Height of this Cluster |
double |
getMaxHeight()
Returns the Maximum Algorithmic Height of any Cluster in
the Hierarchical Cluster Tree that this Cluster is a part
of |
HierCluster |
getNode(int index)
Gets a particular child from a known index |
void |
setDepth(int d)
Sets the Combinatorial Depth of this Cluster |
void |
setHeight(double d)
Sets the Algorithmic Height of this Cluster |
java.lang.String |
toString()
|
| Methods inherited from class org.geworkbench.bison.model.clusters.AbstractCluster |
|---|
addNode, getChildrenNodes, getID, getLabel, getLeafChildren, getLeafChildrenCount, getLeafChildrenCountMap, getNodesCount, getParent, hasNext, isLeaf, next, remove, remove, removeAll, reset, setID, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.geworkbench.bison.model.clusters.HierCluster |
|---|
removeAll |
| Methods inherited from interface org.geworkbench.bison.model.clusters.Cluster |
|---|
addNode, getChildrenNodes, getLeafChildren, getLeafChildrenCount, getLeafChildrenCountMap, getNodesCount, getParent, isLeaf |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Methods inherited from interface org.geworkbench.bison.datastructure.properties.DSIdentifiable |
|---|
getID, setID |
| Constructor Detail |
|---|
public DefaultHierCluster()
| Method Detail |
|---|
public void setHeight(double d)
Cluster
setHeight in interface HierClusterd - height of this nodepublic double getHeight()
Cluster
getHeight in interface HierClusterpublic double getMaxHeight()
Cluster in
the Hierarchical Cluster Tree that this Cluster is a part
of
getMaxHeight in interface HierClusterpublic int getDepth()
Cluster
getDepth in interface HierClusterpublic void setDepth(int d)
Cluster
setDepth in interface HierClusterd - depth of this node
public void addNode(HierCluster hc,
int index)
Cluster as a child of this node
addNode in interface HierClusterhc - child to be addedindex - index at which the child is to be addedpublic HierCluster getNode(int index)
getNode in interface HierClusterindex - child with the index that has be retrievd
public int compareTo(java.lang.Object o)
Comparable method that compares this
Cluster to another Hierarchical CLuster node. The basis of
comparison is the number of children bothe the nodes contain
compareTo in interface java.lang.Comparableo - HierCluster to be compared to
HierClusterpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||