Package weka.classifiers.bayes.net
Class VaryNode
- java.lang.Object
-
- weka.classifiers.bayes.net.VaryNode
-
- All Implemented Interfaces:
java.io.Serializable
,RevisionHandler
public class VaryNode extends java.lang.Object implements java.io.Serializable, RevisionHandler
Part of ADTree implementation. See ADNode.java for more details.- Version:
- $Revision: 1.6 $
- Author:
- Remco Bouckaert (rrb@xm.co.nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VaryNode(int iNode)
Creates new VaryNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 nodesjava.lang.String
getRevision()
Returns the revision string.void
print(java.lang.String sTab)
print is used for debugging only, called from ADNode
-
-
-
Field Detail
-
m_iNode
public int m_iNode
index of the node varied
-
m_nMCV
public int m_nMCV
most common value
-
m_ADNodes
public ADNode[] m_ADNodes
list of ADNode children
-
-
Method Detail
-
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
public void print(java.lang.String sTab)
print is used for debugging only, called from ADNode- Parameters:
sTab
- amount of space.
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
-