|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.clustering.HierarchicalClusterNode
public class HierarchicalClusterNode
This class represents a not leaf node of a hierarchical cluster tree. It holds only references on the children and not on the contained examples. Hence contained examples are gathered recursivly from leaf nodes.
| Constructor Summary | |
|---|---|
HierarchicalClusterNode(int clusterId,
double distance)
|
|
HierarchicalClusterNode(java.lang.String clusterId)
|
|
HierarchicalClusterNode(java.lang.String clusterId,
double distance)
|
|
| Method Summary | |
|---|---|
void |
addSubNode(HierarchicalClusterNode node)
|
java.lang.String |
getClusterId()
|
double |
getDistance()
Get the weight of this node. |
java.util.Collection<java.lang.Object> |
getExampleIdsInSubtree()
Get all objects (as representend by their IDs) in the subtree including the objects located directly at this node. |
int |
getNumberOfExamplesInSubtree()
Returns the number of objects in the subtree including the objects at the current node. |
int |
getNumberOfSubNodes()
Get the number of subnodes. |
java.util.Collection<HierarchicalClusterNode> |
getSubNodes()
Get all children of this node. |
int |
getTotalNumberOfSubnodes()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchicalClusterNode(java.lang.String clusterId)
public HierarchicalClusterNode(int clusterId,
double distance)
public HierarchicalClusterNode(java.lang.String clusterId,
double distance)
| Method Detail |
|---|
public java.util.Collection<HierarchicalClusterNode> getSubNodes()
public int getNumberOfSubNodes()
public double getDistance()
public java.util.Collection<java.lang.Object> getExampleIdsInSubtree()
public int getNumberOfExamplesInSubtree()
public void addSubNode(HierarchicalClusterNode node)
public int getTotalNumberOfSubnodes()
public java.lang.String getClusterId()
public 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 | |||||||||