public class LeafNode extends HNode implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
m_parentBranch
Parent branch leading to this node
|
SplitNode |
m_parentNode
Parent split node
|
HNode |
m_theNode
The actual node for this leaf
|
m_classDistribution
Constructor and Description |
---|
LeafNode()
Construct an empty leaf node
|
LeafNode(HNode node,
SplitNode parentNode,
java.lang.String parentBranch)
Construct a leaf node with the given actual node, parent and parent branch
|
Modifier and Type | Method and Description |
---|---|
void |
updateNode(Instance inst)
Update the node with the supplied instance
|
classDistributionIsPure, getDistribution, graphTree, installNodeNums, isLeaf, leafForInstance, numEntriesInClassDistribution, toString, totalWeight, updateDistribution
public HNode m_theNode
public SplitNode m_parentNode
public java.lang.String m_parentBranch
public void updateNode(Instance inst) throws java.lang.Exception
HNode
updateNode
in class HNode
inst
- the instance to update withjava.lang.Exception
- if a problem occurs