weka.classifiers.meta
Class ND.NDTree

java.lang.Object
  extended byweka.classifiers.meta.ND.NDTree
Enclosing class:
ND

protected class ND.NDTree
extends java.lang.Object


Field Summary
protected  FastVector m_indices
          The indices associated with this node
protected  ND.NDTree m_left
          The left successor
protected  ND.NDTree m_parent
          The parent
protected  ND.NDTree m_right
          The right successor
 
Constructor Summary
protected ND.NDTree()
          Constructor.
 
Method Summary
protected  boolean contains(int index)
          Checks whether an index is in the array.
protected  int[] getIndices()
          Gets the indices in an array of ints.
protected  java.lang.String getString()
          Returns the list of indices as a string.
protected  void insertClassIndex(int classIndex)
          Inserts a class index into the tree.
protected  void insertClassIndexAtNode(int classIndex)
          Inserts the class index at a given node.
protected  ND.NDTree locateNode(int nodeIndex, int[] currentIndex)
          Locates the node with the given index (depth-first traversal).
protected  void propagateClassIndex(int classIndex)
          Propagates class index to the root.
protected  void toString(java.lang.StringBuffer text, int[] id, int level)
          Returns a description of the tree rooted at this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_indices

protected FastVector m_indices
The indices associated with this node


m_parent

protected ND.NDTree m_parent
The parent


m_left

protected ND.NDTree m_left
The left successor


m_right

protected ND.NDTree m_right
The right successor

Constructor Detail

ND.NDTree

protected ND.NDTree()
Constructor.

Method Detail

locateNode

protected ND.NDTree locateNode(int nodeIndex,
                               int[] currentIndex)
Locates the node with the given index (depth-first traversal).


insertClassIndex

protected void insertClassIndex(int classIndex)
Inserts a class index into the tree.


propagateClassIndex

protected void propagateClassIndex(int classIndex)
Propagates class index to the root.


insertClassIndexAtNode

protected void insertClassIndexAtNode(int classIndex)
Inserts the class index at a given node.


getIndices

protected int[] getIndices()
Gets the indices in an array of ints.


contains

protected boolean contains(int index)
Checks whether an index is in the array.


getString

protected java.lang.String getString()
Returns the list of indices as a string.


toString

protected void toString(java.lang.StringBuffer text,
                        int[] id,
                        int level)
Returns a description of the tree rooted at this node.