$search

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 6 of file _PDF.py.


Member Function 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 48 of file _PDF.py.

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

Definition at line 91 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
@type  str: str

Definition at line 130 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
@type  str: str
@param numpy: numpy python module
@type  numpy: module

Definition at line 224 of file _PDF.py.

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

Definition at line 97 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
@type  buff: StringIO
@param numpy: numpy python module
@type  numpy module

Definition at line 189 of file _PDF.py.


Member Data Documentation

Definition at line 45 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 10 of file _PDF.py.

problib::msg::_PDF::PDF::_has_header = False [static, private]

Definition at line 9 of file _PDF.py.

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

Definition at line 7 of file _PDF.py.

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

Definition at line 46 of file _PDF.py.

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

Definition at line 8 of file _PDF.py.

Definition at line 70 of file _PDF.py.

Definition at line 68 of file _PDF.py.

Definition at line 42 of file _PDF.py.

Definition at line 72 of file _PDF.py.

Definition at line 37 of file _PDF.py.

Definition at line 78 of file _PDF.py.

Definition at line 80 of file _PDF.py.

Definition at line 38 of file _PDF.py.

Definition at line 43 of file _PDF.py.

Definition at line 41 of file _PDF.py.

Definition at line 40 of file _PDF.py.

Definition at line 76 of file _PDF.py.

Definition at line 66 of file _PDF.py.

Definition at line 39 of file _PDF.py.

Definition at line 74 of file _PDF.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


problib
Author(s): Sjoerd van den Dries
autogenerated on Tue Mar 5 12:28:33 2013