public final class PredictionNode extends Object implements Serializable, Cloneable, RevisionHandler
Constructor and Description |
---|
PredictionNode(double newValue)
Creates a new prediction node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Splitter newChild,
ADTree addingTo)
Adds a child to this node.
|
Enumeration |
children()
Enumerates the children of this node.
|
Object |
clone()
Clones this node.
|
FastVector |
getChildren()
Gets the children of this node.
|
String |
getRevision()
Returns the revision string.
|
double |
getValue()
Gets the prediction value of the node.
|
void |
merge(PredictionNode merger,
ADTree mergingTo)
Merges this node with another.
|
void |
setValue(double newValue)
Sets the prediction value of the node.
|
public PredictionNode(double newValue)
newValue
- the value that the node should storepublic final void setValue(double newValue)
newValue
- the value that the node should storepublic final double getValue()
public final FastVector getChildren()
public final 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 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 topublic String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.