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

Class weka.classifiers.bayes.ParentSet

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

public class ParentSet
extends java.lang.Object
implements java.io.Serializable
Helper class for Bayes Network classifiers. Provides datastructures to represent a set of parents in a graph.

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

Constructor Index

 o ParentSet()
default constructor
 o ParentSet(int)
constructor
 o ParentSet(ParentSet)
copy constructor

Method Index

 o AddParent(int, Instances)
Add parent to parent set and update internals (specifically the cardinality of the parent set)
 o DeleteLastParent(Instances)
Delete last added parent from parent set and update internals (specifically the cardinality of the parent set)
 o GetCardinalityOfParents()
returns cardinality of parents
 o GetNrOfParents()
returns number of parents
 o GetParent(int)
returns index parent of parent specified by index
 o MaxParentSetSize(int)
reserve memory for parent set

Constructor Detail

 o ParentSet
public ParentSet()
          default constructor
 o ParentSet
public ParentSet(int nMaxNrOfParents)
          constructor
Parameters:
nMaxNrOfParents - upper bound on nr of parents
 o ParentSet
public ParentSet(ParentSet other)
          copy constructor
Parameters:
other - other parent set

Method Detail

 o GetParent
public int GetParent(int iParent)
          returns index parent of parent specified by index
Parameters:
iParent - Index of parent
 o GetNrOfParents
public int GetNrOfParents()
          returns number of parents
 o GetCardinalityOfParents
public int GetCardinalityOfParents()
          returns cardinality of parents
 o MaxParentSetSize
public void MaxParentSetSize(int nSize)
          reserve memory for parent set
Parameters:
nSize - maximum size of parent set to reserver memory for
 o AddParent
public void AddParent(int nParent,
                      Instances _Instances)
          Add parent to parent set and update internals (specifically the cardinality of the parent set)
Parameters:
nParent - parent to add
_Instances - used for updating the internals
 o DeleteLastParent
public void DeleteLastParent(Instances _Instances)
          Delete last added parent from parent set and update internals (specifically the cardinality of the parent set)
Parameters:
_Instances - used for updating the internals

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