类 PredictionNode
java.lang.Object
weka.classifiers.trees.adtree.PredictionNode
- 所有已实现的接口:
Serializable
,Cloneable
,RevisionHandler
public final class PredictionNode
extends Object
implements Serializable, Cloneable, RevisionHandler
Class representing a prediction node in an alternating tree.
- 版本:
- $Revision: 1.7 $
- 作者:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final void
Adds a child to this node.final Enumeration
children()
Enumerates the children of this node.final Object
clone()
Clones this node.final FastVector
Gets the children of this node.Returns the revision string.final double
getValue()
Gets the prediction value of the node.final void
merge
(PredictionNode merger, ADTree mergingTo) Merges this node with another.final void
setValue
(double newValue) Sets the prediction value of the node.
-
构造器详细资料
-
PredictionNode
public PredictionNode(double newValue) Creates a new prediction node.- 参数:
newValue
- the value that the node should store
-
-
方法详细资料
-
setValue
public final void setValue(double newValue) Sets the prediction value of the node.- 参数:
newValue
- the value that the node should store
-
getValue
public final double getValue()Gets the prediction value of the node.- 返回:
- the value stored in the node
-
getChildren
Gets the children of this node.- 返回:
- a FastVector containing child Splitter object references
-
children
Enumerates the children of this node.- 返回:
- an enumeration of child Splitter object references
-
addChild
Adds a child to this node. If possible will merge, and will perform a deep copy of the child tree.- 参数:
newChild
- the new child to add (will be cloned)addingTo
- the tree that this node belongs to
-
clone
Clones this node. Performs a deep copy, recursing through the tree.- 返回:
- a clone
-
merge
Merges this node with another.- 参数:
merger
- the node that is merging with this node - will not be affected, will instead be clonedmergingTo
- the tree that this node belongs to
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-