|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.util.kdtree.NonterminalNode
class NonterminalNode
This class represents non-terminal nodes inside the k-d tree. A non-terminal node defines a split of the data in its two sub-trees. The index of the split attribute and the corresponding split-value are stored inside the node, together with the two child nodes.
| Constructor Summary | |
|---|---|
NonterminalNode(int splitAttribute,
double splitValue,
Node left,
Node right)
Creates a new non-terminal node. |
|
| Method Summary | |
|---|---|
Node |
getLeft()
Returns the left child node. |
Node |
getRight()
Returns the right child node. |
int |
getSplitAttribute()
Returns the attribute index that is used for the split. |
double |
getSplitValue()
Returns the split value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NonterminalNode(int splitAttribute,
double splitValue,
Node left,
Node right)
splitAttribute - the index of the split attributesplitValue - the split valueleft - the left child, can be nullright - the right child, can be null| Method Detail |
|---|
public int getSplitAttribute()
public double getSplitValue()
public Node getLeft()
null.
public Node getRight()
null.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||