|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.bayes.net.ParentSet
Helper class for Bayes Network classifiers. Provides datastructures to represent a set of parents in a graph.
Constructor Summary | |
ParentSet()
default constructor |
|
ParentSet(int nMaxNrOfParents)
constructor |
|
ParentSet(ParentSet other)
copy constructor |
Method Summary | |
void |
addParent(int nParent,
Instances _Instances)
Add parent to parent set and update internals (specifically the cardinality of the parent set) |
void |
addParent(int nParent,
int iParent,
Instances _Instances)
Add parent to parent set at specific location and update internals (specifically the cardinality of the parent set) |
boolean |
contains(int iNode)
test if node is contained in parent set |
void |
copy(ParentSet other)
Copy makes current parents set equal to other parent set |
void |
deleteLastParent(Instances _Instances)
Delete last added parent from parent set and update internals (specifically the cardinality of the parent set) |
int |
deleteParent(int nParent,
Instances _Instances)
delete node from parent set |
int |
getCardinalityOfParents()
returns cardinality of parents |
int |
getNrOfParents()
returns number of parents |
int |
getParent(int iParent)
returns index parent of parent specified by index |
void |
maxParentSetSize(int nSize)
reserve memory for parent set |
void |
SetParent(int iParent,
int nNode)
sets index parent of parent specified by index |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParentSet()
public ParentSet(int nMaxNrOfParents)
nMaxNrOfParents
- upper bound on nr of parentspublic ParentSet(ParentSet other)
other
- other parent setMethod Detail |
public int getParent(int iParent)
iParent
- Index of parentpublic void SetParent(int iParent, int nNode)
iParent
- Index of parentpublic int getNrOfParents()
public boolean contains(int iNode)
public int getCardinalityOfParents()
public void maxParentSetSize(int nSize)
nSize
- maximum size of parent set to reserver memory forpublic void addParent(int nParent, Instances _Instances)
nParent
- parent to add_Instances
- used for updating the internalspublic void addParent(int nParent, int iParent, Instances _Instances)
_Instances
- used for updating the internalspublic int deleteParent(int nParent, Instances _Instances)
public void deleteLastParent(Instances _Instances)
_Instances
- used for updating the internalspublic void copy(ParentSet other)
other
- : parent set to make a copy from
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |