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] |
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
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.
The documentation for this class was generated from the following file: