|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.bayes.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 |
DeleteLastParent(Instances _Instances)
Delete last added parent from parent set and update internals (specifically the cardinality of the 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 |
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 int GetNrOfParents()
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 DeleteLastParent(Instances _Instances)
_Instances
- used for updating the internals
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London