new empty dictionary
|
__init__(self,
args=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
None
|
|
|
|
|
list
|
|
|
(value,float)[]
|
|
dict:teamwork.math.Keys.Key→boolean
|
|
|
|
|
|
|
marginalize(self,
key)
Marginalizes the distribution to remove the given key (not in place!
returns the new distribution) |
source code
|
|
|
|
|
|
|
join(self,
key,
value,
debug=False)
Returns the joint distribution that includes the given key |
source code
|
|
|
|
|
|
|
prune(self)
Removes any zero-probability entries from this distribution |
source code
|
|
|
|
fill(self,
keys,
value=0.0)
Fills in any missing rows/columns in the domain matrices with a
default value |
source code
|
|
|
|
freeze(self)
Locks in the dimensions and keys of all domain values |
source code
|
|
|
|
unfreeze(self)
Unlocks in the dimensions and keys of all domain values |
source code
|
|
|
|
instantiate(self,
table)
Substitutes values for any abstract references, using the given
substitution table |
source code
|
|
|
|
|
|
|
compose(self,
other,
operator,
replace=False,
debug=False)
Composes this distribution with the other given, using the given op |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Distribution
|
conditional(self,
other,
value={})
Computes a conditional probability, given this joint probability
P(AB), the marginal probability P(B), and the value of
B being conditioned on |
source code
|
|
|
Distribution[]
|
reachable(self,
estimators,
observations,
horizon)
Computes any reachable distributions from this one |
source code
|
|
|
|
sample(self)
Returns:
a single element from the sample space, chosen randomly according to
this distribution. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
parse(self,
element,
valueClass=None)
Extracts the distribution from the given XML element |
source code
|
|
|
Inherited from dict:
__cmp__,
__contains__,
__eq__,
__ge__,
__getattribute__,
__gt__,
__hash__,
__iter__,
__le__,
__len__,
__lt__,
__ne__,
__new__,
__repr__,
copy,
fromkeys,
get,
has_key,
iteritems,
iterkeys,
itervalues,
keys,
pop,
popitem,
setdefault,
update,
values
Inherited from object:
__delattr__,
__reduce__,
__reduce_ex__,
__setattr__
|