|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.algorithm.clustering.biclustering.BiclusteringTree
public class BiclusteringTree
Provides a treeStructure with BitSets as nodes and Integers as edges. Every node of the tree has a path to the root, defined trough the edges leading from the node to the root. This class is used by PClustering as a clusterTree, the edges representing columns and the nodes representing rows. Every path from the root to some node of predefined depth, forms a bicluster with that node.
Field Summary | |
---|---|
private ArrayList<BiclusteringTree> |
children
The children of this node. |
private ArrayList<Integer> |
edges
The edges of this node. |
private BitSet |
node
The treeNode currently worked at. |
private BiclusteringTree |
parent
The parent node of this node. |
private int |
placeToAdd
Specifies the position in which a child should be added. |
private int |
rootEdge
The edge leading from the previous node to the current node. |
private BitSet |
rootEdges
The edges leading from the current node to the root of the tree. |
Constructor Summary | |
---|---|
BiclusteringTree()
Constructor creating a new RootTree-Object. |
Method Summary | |
---|---|
private void |
addEdge(int edge)
Adds an edge dependent on its value in ascending order to the List of edges, if it does not already contain this edge. |
private BiclusteringTree |
getChild(int root)
Getter for the child which has the node as root, whose rootEdge is parameter root. |
int |
getChildCount()
Getter for the number of children of this tree. |
ArrayList<BiclusteringTree> |
getChildren()
Getter for the children of this Object. |
BitSet |
getEdgesToRoot()
Getter for the edges leading from this node to the root of the tree. |
BitSet |
getNode()
Getter |
BiclusteringTree |
getParent()
|
void |
insertTree(BitSet edge,
BitSet node,
int initialEdge)
Inserts a new node to the tree by following the edges of the tree given by parameter edge. |
void |
setNode(BitSet newNode)
Expands this node with the entries of newNode. |
private void |
setRootEdge(int edge)
Adds edge to the list of rootEdges. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int placeToAdd
private BitSet node
private int rootEdge
private BitSet rootEdges
private ArrayList<Integer> edges
private ArrayList<BiclusteringTree> children
private BiclusteringTree parent
Constructor Detail |
---|
public BiclusteringTree()
Method Detail |
---|
public ArrayList<BiclusteringTree> getChildren()
private void addEdge(int edge)
edge
- new edge to be added to the list of edges.public void setNode(BitSet newNode)
newNode
- new node to be added to this node.public BitSet getEdgesToRoot()
public int getChildCount()
public BitSet getNode()
private void setRootEdge(int edge)
edge
- new edge to be added to the rootEdges.private BiclusteringTree getChild(int root)
root
- edge which may lead to the rootNode of some child of this
tree.
public BiclusteringTree getParent()
public void insertTree(BitSet edge, BitSet node, int initialEdge)
edge
- a BitSet of edges indicating the path on which end the node
should be insertednode
- node to be added to the treeinitialEdge
- rootEdge leading to the current node.
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |