|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.trees.adtree.PredictionNode
Class representing a prediction node in an alternating tree.
Field Summary | |
private FastVector |
children
The children of this node - any number of splitter nodes |
private double |
value
The prediction value stored in this node |
Constructor Summary | |
PredictionNode(double newValue)
Creates a new prediction node. |
Method Summary | |
void |
addChild(Splitter newChild,
ADTree addingTo)
Adds a child to this node. |
java.util.Enumeration |
children()
Enumerates the children of this node. |
java.lang.Object |
clone()
Clones this node. |
FastVector |
getChildren()
Gets the children of this node. |
double |
getValue()
Gets the prediction value of the node. |
void |
merge(PredictionNode merger,
ADTree mergingTo)
Merges this node with another. |
private void |
setOrderAddedSubtree(Splitter addChild,
ADTree addingTo)
Sets the order added values of the subtree rooted at this splitter node. |
void |
setValue(double newValue)
Sets the prediction value of the node. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private double value
private FastVector children
Constructor Detail |
public PredictionNode(double newValue)
newValue
- the value that the node should storeMethod Detail |
public final void setValue(double newValue)
newValue
- the value that the node should storepublic final double getValue()
public final FastVector getChildren()
public final java.util.Enumeration children()
public final void addChild(Splitter newChild, ADTree addingTo)
newChild
- the new child to add (will be cloned)addingTo
- the tree that this node belongs topublic final java.lang.Object clone()
public final void merge(PredictionNode merger, ADTree mergingTo)
merger
- the node that is merging with this node - will not be affected,
will instead be clonedmergingTo
- the tree that this node belongs toprivate final void setOrderAddedSubtree(Splitter addChild, ADTree addingTo)
addChild
- the root of the subtreeaddingTo
- the tree that this node will belong to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |