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

Public Member Functions

def __init__ (self, node)
 
def set_value (self, value, probability)
 
def size (self)
 
def sample (self)
 
def __eq__ (self, other)
 
- Public Member Functions inherited from PBNT.Distribution.Potential
def __init__ (self, nodes, table=[], default=1)
 
def marginalize (self, other)
 
def normalize (self)
 
def generate_index_node (self, index, nodes)
 
def generate_index (self, index, axis)
 
def transpose (self, nodes)
 
def transpose_copy (self, nodes)
 
def __eq__ (self, other)
 
def __getitem__ (self, index)
 
def __setitem__ (self, index, value)
 
def __add__ (self, right)
 
def __iadd__ (self, right)
 
def __mul__ (self, right)
 
def __imul__ (self, right)
 
def __rmul__ (self, other)
 
def __truediv__ (self, other)
 
def __idiv__ (self, other)
 
def __deepcopy__ (self, memo)
 

Public Attributes

 node
 
 nodes
 
 table
 
 dims
 
 nDims
 
- Public Attributes inherited from PBNT.Distribution.Potential
 nodes
 
 dims
 
 table
 
 nDims
 

Private Attributes

 __nodeSet_
 

Detailed Description

The basic class for a distribution, it defines a simple distribution over a set number of values.  This is not to be confused with ConditionalDiscreteDistribution, which is a discrete distribution conditioned on other discrete distributions.

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