Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Attributes
problib.msg._PDF.PDF Class Reference

List of all members.

Public Member Functions

def __init__
def deserialize
def deserialize_numpy
def serialize
def serialize_numpy

Public Attributes

 data
 dimensions
 domain_size
 exact_value_str
 exact_value_vec
 probabilities
 type
 values

Static Public Attributes

int DISCRETE = 5
int EXACT = 0
int GAUSSIAN = 1
int HYBRID = 6
int MIXTURE = 4
int PARTICLES = 3
int UNIFORM = 2

Private Member Functions

def _get_types

Static Private Attributes

list __slots__ = ['type','dimensions','data','domain_size','values','probabilities','exact_value_str','exact_value_vec']
string _full_text
 _has_header = False
string _md5sum = "75a0d678d0983733e909d6d13b746309"
list _slot_types = ['uint8','uint32','float64[]','int32','string[]','float64[]','string','float64[]']
string _type = "problib/PDF"

Detailed Description

Definition at line 8 of file _PDF.py.


Constructor & Destructor Documentation

def problib.msg._PDF.PDF.__init__ (   self,
  args,
  kwds 
)
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes.  You cannot mix in-order arguments and keyword arguments.

The available fields are:
   type,dimensions,data,domain_size,values,probabilities,exact_value_str,exact_value_vec

:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.

Definition at line 50 of file _PDF.py.


Member Function Documentation

def problib.msg._PDF.PDF._get_types (   self) [private]
internal API method

Definition at line 93 of file _PDF.py.

def problib.msg._PDF.PDF.deserialize (   self,
  str 
)
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``

Definition at line 137 of file _PDF.py.

def problib.msg._PDF.PDF.deserialize_numpy (   self,
  str,
  numpy 
)
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module

Definition at line 240 of file _PDF.py.

def problib.msg._PDF.PDF.serialize (   self,
  buff 
)
serialize message into buffer
:param buff: buffer, ``StringIO``

Definition at line 99 of file _PDF.py.

def problib.msg._PDF.PDF.serialize_numpy (   self,
  buff,
  numpy 
)
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module

Definition at line 201 of file _PDF.py.


Member Data Documentation

Definition at line 47 of file _PDF.py.

string problib::msg::_PDF.PDF::_full_text [static, private]
Initial value:
"""uint8 EXACT=0     # Is here for easier msg creation, but is actually a specialized case:
                # - continuous: is a Gaussian with zero covariance
                # - discrete: is a Discrete pdf with one entry with P=1                
uint8 GAUSSIAN=1
uint8 UNIFORM=2
uint8 PARTICLES=3
uint8 MIXTURE=4
uint8 DISCRETE=5
uint8 HYBRID=6

uint8 type
uint32 dimensions

# For continuous pdf's
float64[] data

# For discrete pdf's (pmf)
int32 domain_size
string[] values
float64[] probabilities

# For exact values, either a string or a vector
string exact_value_str
float64[] exact_value_vec

"""

Definition at line 12 of file _PDF.py.

Definition at line 11 of file _PDF.py.

string problib::msg::_PDF.PDF::_md5sum = "75a0d678d0983733e909d6d13b746309" [static, private]

Definition at line 9 of file _PDF.py.

list problib::msg::_PDF.PDF::_slot_types = ['uint8','uint32','float64[]','int32','string[]','float64[]','string','float64[]'] [static, private]

Definition at line 48 of file _PDF.py.

string problib::msg::_PDF.PDF::_type = "problib/PDF" [static, private]

Definition at line 10 of file _PDF.py.

Definition at line 62 of file _PDF.py.

Definition at line 62 of file _PDF.py.

Definition at line 44 of file _PDF.py.

Definition at line 62 of file _PDF.py.

Definition at line 39 of file _PDF.py.

Definition at line 62 of file _PDF.py.

Definition at line 62 of file _PDF.py.

Definition at line 40 of file _PDF.py.

Definition at line 45 of file _PDF.py.

Definition at line 43 of file _PDF.py.

Definition at line 42 of file _PDF.py.

Definition at line 62 of file _PDF.py.

Definition at line 62 of file _PDF.py.

Definition at line 41 of file _PDF.py.

Definition at line 62 of file _PDF.py.


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


problib
Author(s): Sjoerd van den Dries
autogenerated on Tue Jan 7 2014 11:42:42