A subdomain is a domain together with a specified subset of the domain
variables.
A subdomain implicitly represents all functions from joint
instantiations of the domain variables whose values depend only on the
specified subset of the domain variables. As such they can represent
data-less Parameters.Factor object.
|
|
__init__(self,
variables=(),
domain=None,
new_domain_variables=None,
must_be_new=False,
check=False)
Construct a SubDomain object |
source code
|
|
Same as self
|
|
Same as self
|
|
Same as self
|
|
Same as self
|
|
Same as self
|
|
Same as self
|
|
Same as self
|
|
Same as self
|
__rdiv__(self,
other)
Only called when evaluating other / self, where other is not a
Factor, but self is |
source code
|
|
Same as self
|
|
|
|
|
|
|
|
Same as self
|
__rmul__(self,
other)
Only called when evaluating other*self, where other is not a Factor,
but self is |
source code
|
|
|
SubDomain
|
|
|
Iterator
|
insts(self,
variables=None)
Return an iterator over joint instantiations of
variables |
source code
|
|
|
Iterator
|
insts_indices(self,
variables=None)
Return an iterator over the indices of joint instantiations of
variables |
source code
|
|
|
Int
|
|
Class of self
|
|
Class of self
|
|
|
|
|
|
Integer
|
table_size(self,
variables=None)
Return the number of joint instantiations of variables
in self |
source code
|
|
|
Parameters.Factor object
|
sumout(self,
vars_togo)
Summing out (marginalising) the variables vars_togo from the factor |
source code
|
|
|
Boolean
|
|
|
Frozenset
|
|
|
Dictionary
|
varvalues(self)
Return the dictionary mapping the object's variables to their set of
possible values |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from Domain:
add_domain_variable,
add_domain_variables,
add_domain_variables_from_rawdata,
change_domain_variable,
change_domain_variables,
common_domain,
known_variable,
numvals,
values
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|