All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.bayes.VaryNode

java.lang.Object
    |
    +----weka.classifiers.bayes.VaryNode

public class VaryNode
extends java.lang.Object
Part of ADTree implementation. See ADNode.java for more details.

Version:
$Revision: 1.2 $
Author:
Remco Bouckaert (rrb@xm.co.nz)

Variable Index

 o m_ADNodes
list of ADNode children
 o m_iNode
index of the node varied
 o m_nMCV
most common value

Constructor Index

 o VaryNode(int)
Creates new VaryNode

Method Index

 o getCounts(int[], int[], int[], int, int, ADNode, boolean)
get counts for specific instantiation of a set of nodes
 o print(String)
 

Field Detail

 o m_iNode
public int m_iNode
          index of the node varied
 o m_nMCV
public int m_nMCV
          most common value
 o m_ADNodes
public ADNode[] m_ADNodes
          list of ADNode children

Constructor Detail

 o VaryNode
public VaryNode(int iNode)
          Creates new VaryNode

Method Detail

 o 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 counts
nNodes - - array of node indexes
nOffsets - - offset for nodes in nNodes in nCounts
iNode - - index into nNode indicating current node
iOffset - - Offset into nCounts due to nodes below iNode
parent - - parant ADNode of this VaryNode
bSubstract - - indicate whether counts should be added or substracted
 o print
public void print(java.lang.String sTab)

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home