Quantum Fog  0.9.3
Public Member Functions | Public Attributes | List of all members
PBNT.Node.BayesNode Class Reference
Inheritance diagram for PBNT.Node.BayesNode:
Inheritance graph
[legend]
Collaboration diagram for PBNT.Node.BayesNode:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, id, numValues, index=-1, name="anonymous")
 
def set_dist (self, dist)
 
def size (self)
 
def __len__ (self)
 
def __copy__ (self)
 
- Public Member Functions inherited from PBNT.Node.DirectedNode
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)
 
- Public Member Functions inherited from PBNT.Node.Node
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)
 

Public Attributes

 numValues
 
 value
 
 clique
 
 dist
 
- Public Attributes inherited from PBNT.Node.DirectedNode
 parents
 
 children
 
 neighbors
 
- Public Attributes inherited from PBNT.Node.Node
 neighbors
 
 visited
 
 id
 
 index
 
 name
 

Detailed Description

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.

The documentation for this class was generated from the following file: