|
|
def | __init__ (self, id, numValues, index=-1, name="anonymous") |
| |
|
def | set_dist (self, dist) |
| |
|
def | size (self) |
| |
|
def | __len__ (self) |
| |
|
def | __copy__ (self) |
| |
|
def | __init__ (self, id, index=-1, name="anonymous") |
| |
|
def | add_parent (self, parent) |
| |
|
def | add_child (self, child) |
| |
|
def | remove_parent (self, parent) |
| |
|
def | remove_child (self, child) |
| |
| def | undirect (self) |
| |
|
def | __init__ (self, id, index=-1, name="anonymous") |
| |
|
def | __lt__ (self, other) |
| |
|
def | __hash__ (self) |
| |
|
def | __eq__ (self, right) |
| |
| def | add_neighbor (self, node) |
| |
|
def | remove_neighbor (self, node) |
| |
|
def | is_neighbor (self, node) |
| |
BayesNode is a child class of DirectedNode. Essentially it is a DirectedNode with some added fields that make it more appropriate for a Bayesian Network, such as a field for a distribution and arrays of indices. The arrays are indices of its parents and children; that is the index of its neighbor within the overall bayes net.