|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.bayes.VaryNode
Part of ADTree implementation. See ADNode.java for more details.
Field Summary | |
ADNode[] |
m_ADNodes
list of ADNode children |
int |
m_iNode
index of the node varied |
int |
m_nMCV
most common value |
Constructor Summary | |
VaryNode(int iNode)
Creates new VaryNode |
Method Summary | |
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 |
void |
print(java.lang.String sTab)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int m_iNode
public int m_nMCV
public ADNode[] m_ADNodes
Constructor Detail |
public VaryNode(int iNode)
Method Detail |
public void getCounts(int[] nCounts, int[] nNodes, int[] nOffsets, int iNode, int iOffset, ADNode parent, boolean bSubstract)
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 substractedpublic void print(java.lang.String sTab)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |