Package weka.classifiers.bayes.net
Class VaryNode
java.lang.Object
weka.classifiers.bayes.net.VaryNode
- All Implemented Interfaces:
Serializable
,RevisionHandler
Part of ADTree implementation. See ADNode.java for more details.
- Version:
- $Revision: 10153 $
- Author:
- Remco Bouckaert (rrb@xm.co.nz)
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
m_iNode
public int m_iNodeindex of the node varied -
m_nMCV
public int m_nMCVmost common value -
m_ADNodes
list of ADNode children
-
-
Constructor Details
-
VaryNode
public VaryNode(int iNode) Creates new VaryNode
-
-
Method Details
-
getCounts
public void getCounts(int[] nCounts, int[] nNodes, int[] nOffsets, int iNode, int iOffset, ADNode parent, boolean bSubstract) get counts for specific instantiation of a set of nodes- Parameters:
nCounts
- array for storing countsnNodes
- array of node indexesnOffsets
- offset for nodes in nNodes in nCountsiNode
- index into nNode indicating current nodeiOffset
- Offset into nCounts due to nodes below iNodeparent
- parant ADNode of this VaryNodebSubstract
- indicate whether counts should be added or substracted
-
print
print is used for debugging only, called from ADNode- Parameters:
sTab
- amount of space.
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-