| java.lang.Object weka.classifiers.bayes.net.ParentSet
ParentSet | public class ParentSet implements Serializable(Code) | | Helper class for Bayes Network classifiers. Provides datastructures to
represent a set of parents in a graph.
author: Remco Bouckaert (rrb@xm.co.nz) version: $Revision: 1.6 $ |
serialVersionUID | final static long serialVersionUID(Code) | | for serialization
|
ParentSet | public ParentSet()(Code) | | default constructor
|
ParentSet | public ParentSet(int nMaxNrOfParents)(Code) | | constructor
Parameters: nMaxNrOfParents - upper bound on nr of parents |
ParentSet | public ParentSet(ParentSet other)(Code) | | copy constructor
Parameters: other - other parent set |
SetParent | public void SetParent(int iParent, int nNode)(Code) | | sets index parent of parent specified by index
Parameters: iParent - Index of parent Parameters: nNode - index of the node that becomes parent |
addParent | public void addParent(int nParent, Instances _Instances)(Code) | | Add parent to parent set and update internals (specifically the cardinality of the parent set)
Parameters: nParent - parent to add Parameters: _Instances - used for updating the internals |
addParent | public void addParent(int nParent, int iParent, Instances _Instances)(Code) | | Add parent to parent set at specific location
and update internals (specifically the cardinality of the parent set)
Parameters: nParent - parent to add Parameters: iParent - location to add parent in parent set Parameters: _Instances - used for updating the internals |
contains | public boolean contains(int iNode)(Code) | | test if node is contained in parent set
Parameters: iNode - node to test for number of parents |
copy | public void copy(ParentSet other)(Code) | | Copy makes current parents set equal to other parent set
Parameters: other - : parent set to make a copy from |
deleteLastParent | public void deleteLastParent(Instances _Instances)(Code) | | Delete last added parent from parent set and update internals (specifically the cardinality of the parent set)
Parameters: _Instances - used for updating the internals |
deleteParent | public int deleteParent(int nParent, Instances _Instances)(Code) | | delete node from parent set
Parameters: nParent - node number of the parent to delete Parameters: _Instances - data set location of the parent in the parent set. This information can be used to restore the parent set using the addParent method. |
getCardinalityOfParents | public int getCardinalityOfParents()(Code) | | returns cardinality of parents
the cardinality |
getNrOfParents | public int getNrOfParents()(Code) | | returns number of parents
number of parents |
getParent | public int getParent(int iParent)(Code) | | returns index parent of parent specified by index
Parameters: iParent - Index of parent index of parent |
maxParentSetSize | public void maxParentSetSize(int nSize)(Code) | | reserve memory for parent set
Parameters: nSize - maximum size of parent set to reserver memory for |
|
|